Using Sendmail’s mailertable
Edit sendmail.mc and add the following:
FEATURE(`mailertable')dnl
Run:
m4 sendmail.mc > sendmail.cf
Create /etc/mail/mailertable and add the incoming mail to route as in:
example.com smtp:[192.168.0.1]
Run:
makemap hash /etc/mail/mailertable < /etc/mail/mailertable
Restart sendmail.
0 Comments