AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
Expand all | Collapse all

sendmail not working

  • 1.  sendmail not working

    Posted Wed March 04, 2026 08:20 AM

    Hello Team,

    I have configured the relay on the serverAIX7.3 but the email not received on target emails. also we have added relay servers entry in the /etc/hosts files and restarted the sendmail service but seem the error came. 

    bash-5.2# cat /etc/mail/sendmail.cf |grep -i DS
    # @(#)24        1.78  src/bos/usr/sbin/sendmail/sendmail.cf, cmdsend, bos720 6/6/12 04:39:10
    # @(#)21        1.3  src/bos/usr/sbin/sendmail/cf/cf/sendmail.cf, cmdsend, bos73B, b2022_21A3 4/28/22 08:51:06
    # COMPONENT_NAME: CMDSEND sendmail.cf
    DSsmtp-out.dnaip.fi

    when we checked the files under the path /var/spool/mqueue which generated after sending email from the server. wondering that after some time, we observed that same files we can see error like MDeferred: Connection timed out with mx.dnaip.fi

    bash-5.2# oslevel -s
    7300-03-01-2520
    bash-5.2#

    could you please help us what needs to check to correct this one.



    ------------------------------
    Rahul Dandale
    ------------------------------


  • 2.  RE: sendmail not working

    Posted Wed March 04, 2026 08:38 AM

    Two ideas:
    Make sure the smarthost is accessible from the host - debug smtp with telnet 
    The server should not care about the MX record if it is correctly in sendmail smarthost mode so something is wrong there.



    ------------------------------
    Alexander Pettitt
    ------------------------------



  • 3.  RE: sendmail not working

    Posted Thu March 05, 2026 04:11 AM

    Can your LPAR connect to port 25 of mx1 and mx2 ?



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 4.  RE: sendmail not working

    Posted Thu March 05, 2026 06:04 AM

    Have you set the correct mail server in /etc/mail/submit.cf (DS)?



    ------------------------------
    Christof
    ------------------------------



  • 5.  RE: sendmail not working

    Posted Thu March 05, 2026 06:30 AM

    Hello 

    I have added relay under the /etc/mail/sendmail.cf file 

    DS****

    and restarted the sendmail service. when we check log file under the path /var/spool/mqueue and found no error in that file. 

    but after some time if we cat same file we are getting error "MDeferred: Connection timed out with mx.abc.fi"

    could you please suggest on this why its happening



    ------------------------------
    Rahul Dandale
    ------------------------------



  • 6.  RE: sendmail not working

    Posted Thu March 05, 2026 06:36 AM

    Before trying to debug sendmail issues, verify that your LPAR can connect to mx.abc.fi on port 25.



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 7.  RE: sendmail not working

    Posted Thu March 05, 2026 06:42 AM

    Hello

    for mx.abc.fi on port 25 not connected.

    but when we do telnet for the relay **** ( provided in the request) for port 25 is connected and those we added in the /etc/mail/sendmail.cf file



    ------------------------------
    Rahul Dandale
    ------------------------------



  • 8.  RE: sendmail not working

    Posted Thu March 05, 2026 07:12 AM

    If you're sending mail for someone @abc.fi (or any other domain with the same MX record) and get this, did you set the smart relay (DS) on both sendmail.cf and submit.cf ?



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 9.  RE: sendmail not working

    Posted Thu March 05, 2026 07:17 AM

    Hello

    I set relay under the sendmail.cf only not submit.cf. can I add same relay in the submit.cf as well ?



    ------------------------------
    Rahul Dandale
    ------------------------------



  • 10.  RE: sendmail not working

    Posted Thu March 05, 2026 07:26 AM

    Yes.  submit.cf is used when you use "mail" on the LPAR to send an email, sendmail.cf is used by the sendmail daemon.



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 11.  RE: sendmail not working

    Posted Thu March 05, 2026 07:37 AM
    Edited by Rahul Dandale Thu March 05, 2026 07:38 AM

    after adding relay in /etc/submit.cf file and testing email getting below error

    ... Connecting to mx.abc. via relay

    .....Deferred: Connection timed out with mx.abc.fi



    ------------------------------
    Rahul Dandale
    ------------------------------



  • 12.  RE: sendmail not working

    Posted Fri March 06, 2026 06:48 AM

    Do not forget to stop/start the sendmail daemon if you change the mail configuration file.



    ------------------------------
    Richard Westerik
    Principal specialist
    Simac IT NL bv
    Ede
    +31651575123
    ------------------------------



  • 13.  RE: sendmail not working

    Posted Thu March 05, 2026 07:27 AM

    Hello Rahul,

    yes: https://www.ibm.com/docs/en/aix/7.2.0?topic=s-sendmail-command

    Starting with AIX 7.2, Technology level 4, the sendmail command supports the Mail Submission Program mode (MSP_mode) by using the /etc/mail/submit.cf configuration file.



    ------------------------------
    Christof
    ------------------------------



  • 14.  RE: sendmail not working

    Posted Thu March 05, 2026 08:16 AM

    Hi, add the relay server to the /etc/mail/submit.cf and try again.



    ------------------------------
    Guillermo Ordonez
    ------------------------------



  • 15.  RE: sendmail not working

    Posted Thu March 05, 2026 08:21 AM
    Edited by Rahul Dandale Thu March 05, 2026 08:25 AM

    Hello 

    yeah, we did it but no luck 

    getting below error.

    ==== ====================

    Connecting to mx.abc.fi. via relay...
    Deferred: Connection timed out with mx.abc.fi.

    ========= ==============

    when we removed relay entry from submit.cf file then error gone. seems no email delivered to my email id



    ------------------------------
    Rahul
    ------------------------------



  • 16.  RE: sendmail not working

    Posted Thu March 05, 2026 09:06 AM
    Edited by Angel Bugarin Thu March 05, 2026 09:06 AM

    Things I would check:

    Is your sendmail service on the AIX host active?

    Is the AIX host configured in the relay server, mx.abc.fi?

    Is there a firewall between your AIX host and mx.abc.fi?

     



    ------------------------------
    Angel Bugarin
    ------------------------------



  • 17.  RE: sendmail not working

    Posted Thu March 05, 2026 09:14 AM

    Is your sendmail service on the AIX host active? ---Yes

    Is the AIX host configured in the relay server, mx.abc.fi? ---- Yes added relay host entry in /etc/hosts file

    Is there a firewall between your AIX host and mx.abc.fi? ---no firewall



    ------------------------------
    Rahul Dandale
    ------------------------------



  • 18.  RE: sendmail not working

    Posted Thu March 05, 2026 09:37 AM
    Edited by Angel Bugarin Thu March 05, 2026 09:41 AM

    This doesn't sound right.

    "Is the AIX host configured in the relay server, mx.abc.fi? ---- Yes added relay host entry in /etc/hosts file"   

    Check with the admin who manage the relay server, mx.abc.fi, and make sure your AIX host is configured in that server accordingly. Meaning, your AIX host is allowed to send or "relay" emails through it. 



    ------------------------------
    Angel Bugarin
    ------------------------------



  • 19.  RE: sendmail not working

    Posted Thu March 05, 2026 09:48 AM

    Hello Angel ,

    I will let you know as soon as I receive input from the admin team. It might take a little time for those updates to come through, but I'll keep you posted.

    Thank you very much for your inputs and valuable time on this so far.



    ------------------------------
    Rahul Dandale
    ------------------------------



  • 20.  RE: sendmail not working

    Posted Fri March 06, 2026 09:53 AM

    Hello All,

    Now sendmail is working fine and mail delivered successfully.

    what I did ......

    enclose the relay host in square brackets in sendmail.cf file (e.g., DS[mail.example.com]) and restarted the sendmail service. 

    tested the email and its delivered successfully.

    Thank you so much all of you for your suggestions on this issue.



    ------------------------------
    Rahul Dandale
    ------------------------------



  • 21.  RE: sendmail not working

    Posted Sun March 08, 2026 09:03 AM

    Thank you very much it was really helpful!



    ------------------------------
    Devin Golia
    ------------------------------