SUMMARY: Solaris 8 Postfix SMTP Gateway and Postfix Mailserver

From: FREEHOME SunManager <sunmanagers_at_freehome.ch>
Date: Fri Oct 31 2003 - 18:38:13 EST
Hello Sunmanagers

I solved the problem....firstable many thanks to WC Jones he helped me to
show me the right way...! Firstable it is NOT a Solaris problem it is a
postfix config problem. I tried several configurations but only one works
for me. Below you will find the two main.cf from the mailserver and the
gateway. Short explained it is importante:

A. That you put your networks in main.cf
B. That you make entries in /etc/hosts for gateway and mailserver with both
IP's public and private on the mailserver and on the gateway.
C. That you config your gateway with the position "relay_domains ="
D. That you config your mailserver with the position "relayhost ="

It was really funny but I received such many messages about this problems or
similar problems.....I think really it is for all people a problem because
each one has ist own situation.....this is the reason I would like to warn
you...be careful it will function for my situation but if it is ok also for
you!? There is a little problem again....if somebody would right an email
from OpenWebMail to a domain or local user on the same server it will not be
forwarded to the gateway because it seems that OpenWebMail has ist own smtp
client to deliver local. I didn't find the config position to config that
OpenWebMail will deliver the mails also to local postfix. If somebody knows
where this will be or could be configured he is welcome to write me. Anyway
here the main.cf from my servers.

main.cf of gateway
******************

29:queue_directory = /directory2/postfix
30:
34:command_directory = /directory1/postfix-x.x.xx/sbin
35:
40:daemon_directory = /directory1/postfix-x.x.xx/libexec
41:
51:mail_owner = postfix
52:
68:myhostname = gateway.mydomain.ch
69:
75:mydomain = mydomain.ch
76:
91:myorigin = $myhostname
92:
120:
155:mydestination = $myhostname, localhost.$mydomain, $mydomain,
mail.$mydomain
156:
198:local_recipient_maps = 
199:
200:biff = no
201:empty_address_recipient = MAILER-DAEMON
202:queue_minfree = 8000000
203:message_size_limit = 20000000
204:mailbox_size_limit = 100000000
205:
216:unknown_local_recipient_reject_code = 450
217:
261:mynetworks = [my internal IP's/XX], [my IP's/XX], [my IP's/XX], [my
IP's/XX], 127.0.0.0/8
262:
292:relay_domains = $mydestination, mailserver.mydomain.ch,
dbm:/directory1/postfix-x.x.xx/etc/vdomains
293:
387:alias_maps = dbm:/directory1/postfix-x.x.xx/etc/aliases
388:
398:alias_database = dbm:/directory1/postfix-x.x.xx/etc/aliases
399:
555:smtpd_banner = $myhostname ESMTP
556:
557:transport_maps = dbm:/directory1/postfix-x.x.xx/etc/transport
558:local_transport = local
559:
560:smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination, reject_non_fqdn_recipient
561:
562:notify_classes = 2bounce,policy,protocol,resource,software
563:
564:content_filter = smtp-amavis:[127.0.0.1]:10024
585:
592:debug_peer_level = 2
593:
602:
610:debugger_command =
611:     PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
612:     xxgdb $daemon_directory/$process_name $process_id & sleep 5
613:
619:
627:sendmail_path = /directory1/postfix-x.x.xx/sbin/sendmail
628:
632:newaliases_path = /directory1/postfix-x.x.xx/bin/newaliases
633:
637:mailq_path = /directory1/postfix-x.x.xx/bin/mailq
638:
643:setgid_group = postdrop
644:
647:manpage_directory = /directory1/postfix-x.x.xx/man
648:
651:sample_directory = /directory1/postfix-x.x.xx/samples
652:
655:readme_directory = /directory1/postfix-x.x.xx/readme


main.cf of mailserver
*********************

10:
21:
29:queue_directory = /var/spool/postfix
30:
34:command_directory = /directory1/postfix-x.x.xx/sbin
35:
40:daemon_directory = /directory1/postfix-x.x.xx/dbin
41:
51:mail_owner = postfix
52:
59:default_privs = vmail
60:
70:myhostname = mailserver.mydomain.ch
71:
78:mydomain = mailserver.mydomain.ch
79:
94:myorigin = $myhostname
123:
162:mydestination = $myhostname, localhost.$mydomain, $mydomain,
mail.$mydomain
163:
205:local_recipient_maps =
206:
207:biff = no
208:empty_address_recipient = MAILER-DAEMON
209:queue_minfree = 8000000
210:message_size_limit = 20000000
211:
222:unknown_local_recipient_reject_code = 450
223:
267:mynetworks = [my internal IP's/XX], [my IP's/XX], [my IP's/XX], [my
IP's/XX], 127.0.0.0/8
268:
318:relayhost = gateway.mydomain.ch
319:
393:alias_maps = dbm:/directory2/vmail/virtual_aliases, $alias_database
394:
404:alias_database = dbm:/directory2/vmail/aliases
405:
407:virtual_alias_maps = dbm:/directory2/vmail/virtual_domains
408:virtual_alias_domains = $virtual_alias_maps
409:
430:home_mailbox = Mailbox
431: 
438:mail_spool_directory = /var/spool/postfix
439:
566:smtpd_banner = $myhostname ESMTP
567:
570:smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination, reject_non_fqdn_recipient
571:
572:notify_classes = 2bounce,policy,protocol,resource,software
573:
597:debug_peer_level = 2
598:
615:debugger_command =
616:     PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
617:     xxgdb $daemon_directory/$process_name $process_id & sleep 5
618:
632:sendmail_path = /directory1/postfix-x.x.xx/sbin/sendmail
633:
637:newaliases_path = /directory1/postfix-x.x.xx/bin/newaliases
638:
642:mailq_path = /directory1/postfix-x.x.xx/bin/mailq
643:
648:setgid_group = postdrop
649:
652:manpage_directory = /directory1/postfix-x.x.xx/man
653:
656:sample_directory = /directory1/postfix-x.x.xx/samples
657:
660:readme_directory = /directory1/postfix-x.x.xx/readme
661:
666:allow_mail_to_files = alias, forward, include

Andrea


Hello

No I know that this is not a special Solaris 8 question but I don't know if
it is onto Solaris 8 or onto Postfix Konfiguration. I'm using Solairs 8 on a
Ultra 5 with Core installation it was setup two servers:

Server 1 = SMTP Gateway with Solaris 8, Postfix, Amavisd-New, SpamAssassin,
DCC, Razor, Clamad, InoculateIT

Server 2 = Postfix with OpenWebmail (www.openwebmail.org)

Now we configured over MX record that all outbound mails will be delivered
first to Server 1 and there the mails will be checked for virus and spam
etc. (works absolutly great and the best solution I have ever seen). After
checking all mails will be delivered as configured in transport file to
Server 2 where all mailboxes are from the users. So far so good there are no
problems all working OK. Now what I would like to do is to configure that if
somebody writes an email from WebInterface or on local network that
firstable all e-mails will be delivered to the Server 1 and will be checked
and if the mail is OK it will be delivered to enddestination which could be
inbound or outbound. I tried several configuration it means with the
transport file but it ends allways in a loop and after 30 hops it will be
end in a error "to many hoops". I know that I could setup also Amavisd-New
etc. on Server 2 but I think it could not be if I have a special Server like
Server 1 for this work.

My question....could it be that something special must be done on Solaris
Operating Systeme that the delivery between Server 2 to Server 1 will not
end in a loop? Anybody have the same constallation with Postfix or
configured a similar constallation?

Andrea Soliva
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Oct 31 18:45:18 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:23 EST