Moving from sendmail to postfix
kevin.miller at juneau.org
Fri Dec 2 17:44:50 UTC 2016
Copy the content of sendmail's mailertable to the postfix transport file. In /etc/postfix/transport I changed esmtp to just smtp. I.e.
That took care of the forwarding part. I'm not using the virtualusertable at all.
To replace access I created two files: client_access and sender_access. They're in .db format. In main.cf put
under the smtpd_recipient_restrictions = ...
check_client_access blocks or whitelists by client IP, Client IP Range or Hostname
check_sender_access blocks or whitelists by sender e-mail address (In the envelope FROM field)
Hope I have all that right. At any rate, it's working for me.
Network/email Administrator, CBJ MIS Dept.
155 South Seward Street
Juneau, Alaska 99801
Phone: (907) 586-0242, Fax: (907) 586-4588 Registered Linux User No: 307357
From: MailScanner [mailto:mailscanner-bounces+kevin.miller=juneau.org at lists.mailscanner.info] On Behalf Of Graham S. Jarvis
Sent: Friday, December 02, 2016 5:12 AM
To: MailScanner discussion
Subject: Moving from sendmail to postfix
I'm sure this is a really common question but google wasn't very helpful finding me the "one true answer" ;)
I run a MailScanner "hub" which processes mail for various domains.
Mail arrives at this hub because the MX10 record for those domains points to this host. Some addresses are local some have to be sent on to the final destination after having been scanned.
I had this set-up and working on a sendmail system using virtualusertable, aliases, access and mailertable and this works well.
I've now moved to Postfix and I need to know how to replicate the access/mailertable configuration so that I can list the domains where mail has to be forwarded and the IP_Addr of those hosts.
At the moment everything works fine for the local domains/addresses via
virtual_alias_domains = /etc/mail/local-host-names
virtual_alias_maps = hash:/etc/mail/virtusertable, hash:/etc/mail/aliases in main.cf
when a mail arrives for one of the domains that is not on this host I get a "(mail for domain.tld loops back to myself)" message and the mail is bounced.
I can understand that this is because the domain.tld has an MX10 that points back to me.
how to make sure that Postfix forwards directly to the IP_Addr like Sendmail used to..... ?
All help and pointers gratefully received!
Thanks in advance,
MailScanner mailing list
mailscanner at lists.mailscanner.info
More information about the MailScanner