Some questions around spawn

2014-12-12 Thread Clement Thomas
Hi, I am writing a simple lookup script in python and i use spawn to make it talk to postfix. # /etc/postfix/master.cf 127.0.0.1:6543 inet n n n - 0 spawn user=nobody argv=/opt/scripts/lookupserver # connecting as tcp:localhost:6543 and it works as expected.

FILTER and transport_maps

2014-08-28 Thread Clement Thomas
Hi, Our outbound servers send out mails through different IPs and this is doneas follows (postconf -n output: https://gist.github.com/clement1289/2dfeea7b7625aee4a637 ). smtpd_end_of_data_restrictions = check_sender_access pgsql:/etc/postfix/random-transports.cf # which will return FILTER

HOLD all incoming mails

2014-02-03 Thread Clement Thomas
Hi, We have a scheduled maintenance for around 8 to 10 hours for our Mail storage servers. During the downtime, we plan to HOLD all incoming mails and release them once the storage servers are up. To our existing smtpd restrictions, We added smtpd_end_of_data_restrictions and it worked.