Sendmail client

Hi Team,

I am configuring sendmail client for sending mail through EXTERNAL server in my domain. I tried all options but failed, not working for me, please find config file as below.

Code:
 define(`SMART_HOST',`[172.20.200.29]')dnl  
 DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
And in below file /etc/mail/submit.cf
Code:
D{MTAHost}172.20.200.29

O DaemonPortOptions=Name=MTA, Addr=172.20.200.29, M=E
But still no luck I am getting the below error:
Code:
stat=Host unknown (Name server: 172.20.200.29: host not found)
I am able to nsllokup nslookup from client working fine.

Please help I am lost.
 
The IP address needs to be in square brackets; now it is treated as a hostname for which MX records need to be looked up.
 
Hi,

Thanks for help.

IP address should be in square bracket, I didn't get you, could you please rewrite the complete line which would help me.

One more, is this is only change or do I need to change any other files.
 
I'm sure you can spot where square brackets are missing.
Code:
define(`SMART_HOST',`[B][[/B]172.20.200.29[B]][/B]')dnl
Code:
D{MTAHost}172.20.200.29

This should really be done in the .mc files, not in any .cf files, but there's plenty of documentation (in Sendmail, and on the forums) to find that.
 
Hi @DutchDaemon, thanks for support. I am able to send email. Issues I faced are
  1. Hostname resolution (resolved by adding in DNS server)
  2. Added 'RELAY HOST' in /etc/mail/submit.cf and /etc/mail/sendmail.mc
  3. Added 'RELAY HOST' name instead of IP address because of confusion
  4. Finally I got a data error which I found was a problem with the hostname in the /etc/hosts file
Thanks for support.
 
Last edited by a moderator:
Back
Top