I *think* I have a clean postfix installation - just waiting for something to go wrong. If anyone can spot a potential problem in the meantime , please let me know what it is. This doesn't require any changes to port numbers etc and effectively treats postfix as a drop in replacement for sendmail.
(various assumptions made like all services running on one box etc ...)
a. Assume Ubuntu 6.10
b. Remove sendmail, use dpkg -r --force-all if necessary
c. Install postfix (and mailx)
d. edit the standard /etc/postfix/main and change as follows;
Code: Select all
inet_interfaces = loopback-only
local_recipient_maps =
relayhost = <your smart relay>
mynetworks = 127.0.0.0/8
transport_maps = ldap:/etc/postfix/ldap-transport.cf, ldap:/etc/postfix/ldap-transport2.cf
Add /etc/postfix/ldap-transport.cf:
Code: Select all
bind = no
query_filter = (&(mail=%s)(omUlClass=*))
result_format = lmtp:[localhost]:24
result_attribute = omMailnode
debuglevel = 0
Add /etc/postfix/ldap-transport2.cf:
Code: Select all
bind = no
query_filter = (&(mail=catchall@%d)(omUlClass=*))
result_format = lmtp:[localhost]:24
result_attribute = omMailnode
debuglevel = 0
e. For each domain you host, add (to any user) add (in sac);
catchall@<domain name>
This ensures that postfix will all mail for recognised domains to scalix.
f. If you want to catch email to unrecognised local users, add a CATCHALL to your smtpd.conf.
g. Make sure you have LMTP turned on in your Scalix smtpd.conf,
I seem to be getting email .. if anyone who knows why sendmail was the preferred mailer can point me at any oversights it would be much appreciated.
For now, I have mail and no errors!
(which after a couple of weeks of sendmail silently dropping random emails for no reason I can see, is a rather nice change.)