I am running CENTOS 6.2 with 2 virtual machines one 'auth'(192.168.0.2) and another proxy (192.168.0.3). Proxy host has no internet connection. My intention is proxy host will send its mail to auth host and auth host send the mail out from there.
I have configured the smart host configuration in sendmail.mc in proxy as such :
define(`SMART_HOST', '192.168.0.2')
I also have set up a relay in auth under access:
CONNECT:192.168.0.3 RELAY
However, when I still try to send mail out from proxy using :
mail cumaresen@gmail.com
The mail is not being sent out and the logs show it as such :
Jan 15 01:03:48 test1 sendmail[14388]: s0F8xmdl014388: from=proxy, size=244, class=0, nrcpts=1, msgid=<201401150859.s0F8xmdl014388@test1>, relay=root@localhost
Jan 15 01:03:48 test1 sendmail[14388]: s0F8xmdl014388: to=cumaresen@gmail.com, delay=00:04:00, mailer=esmtp, pri=30244, dsn=4.4.3, stat=queued
It is still relaying via root@localhost.
I have tried using the fix as explained by EreBusBat and I still experience the same issue.