ZeroDni
26th October 2007, 22:03
I have been using sendmail as a relay for our domains. and there is this feature in sendmail that allows sendmail to try more than mail server. When trying to relay message.
For Example in my sendmail's mailertable if i specify the domain then put esmtp:[mailserver1]:[mailserver1] so it looks like this
domain.com esmtp:[mailserver1]:[mailserver2]
what will happen is that sendmail will try to send messages to mailserver1 if it cant for some reason it will then try mailserver2
i know i can do this by specifying fallback_relay = mailserver2 in my main.cf
but i have more than 100 domains and only some of them have multiple mail servers so i need this to be specified on a domain by domain bases just like sendmail does.
Can Postfix do this. and can it be done in the transport table so i might a be able to move this over to a mysql soon.
For Example in my sendmail's mailertable if i specify the domain then put esmtp:[mailserver1]:[mailserver1] so it looks like this
domain.com esmtp:[mailserver1]:[mailserver2]
what will happen is that sendmail will try to send messages to mailserver1 if it cant for some reason it will then try mailserver2
i know i can do this by specifying fallback_relay = mailserver2 in my main.cf
but i have more than 100 domains and only some of them have multiple mail servers so i need this to be specified on a domain by domain bases just like sendmail does.
Can Postfix do this. and can it be done in the transport table so i might a be able to move this over to a mysql soon.