LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail Issue? (https://www.linuxquestions.org/questions/linux-server-73/sendmail-issue-691100/)

p_s_shah 12-17-2008 06:31 AM

please try following
 
Possible cause may be your system is not configured to relay mails to separate SMTP server.
Quote:

#grep "DS" /etc/mail/sendmail.cf
DS
# Return-Receipt-To: header implies DSN request
# DHParameters (only required if DSA/DH is used)

#grep "SMART_HOST" /etc/mail/sendmail.mc
dnl define(`SMART_HOST',`smtp.your.provider')
[root@EL385 ~]#
SMTP Server is a seperate server.

1. Take backup of sendmail.mc and sendmail.cf before editing them.
2. Replace "smtp.your.provider" with your SMTP server qualified name in sendmail.mc file. Make sure you are able to ping, as well as telnet <SMTP Server> 25 from konsole.
3. Regenerate sendmail.cf using
m4 /path/to/sendmail.mc > /path/to/sendmail.cf
4. Restart sendmail service.
5. Try sending mail and also paste logs.

Quote:

The Test #telnet <> 25 works and tested successfuly.
But why the remote user not receiving the mail.
Can you run the test again and copy/paste the complete session ?
Are you doing telenet to SMTP server or localhost ?
Can you double check that remote SMTP server has no restriction for relaying mail from your system ?

robertwolfe 12-17-2008 09:31 AM

Quote:

Originally Posted by your_shadow03 (Post 3378079)
Whenever I am running this command on the command line on RHEL I am getting the error:

Code:

[root@EL385 ~]# echo "it is my job"| mail -vv aaina@gmail.com
WARNING: local host name (EL385) is not qualified; see cf/README: WHO AM I?
aaina@gmail.com... Connecting to [127.0.0.1] via relay...
220 ssa.loga.com ESMTP Sendmail 8.13.1/8.13.1; Wed, 17 Dec 2008 04:36:20 GMT
>>> EHLO
250-ssa.loga.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:<root@EL385> SIZE=39 AUTH=root@EL385
250 2.1.0 <root@EL385>... Sender ok
>>> RCPT To:<aaina@gmail.com>
>>> DATA

Code:

Dec 17 04:35:19 tuxbuddy sendmail[5834]: My unqualified host name (EL385) unknown; sleeping for retry
Dec 17 04:38:12 EL385 sendmail[2347]: mBC8ASsl014838: to=<root@bl18dl385>, delay=4+20:26:28, xdelay=00:00:35, mailer=esmtp, pri=10473308, relay=EL385.logica.com., dsn=4.0.0, stat=Deferred: Name server: bl18dl385.loga.com.: host name lookup failure
Dec 17 04:38:52 EL385 sendmail[2347]: mBC4ASsl010087: to=<root@EL385>, delay=5+00:06:30, xdelay=00:00:40, mailer=esmtp, pri=10833438, relay=EL385.loga.com., dsn=4.0.0, stat=Deferred: Name server: EL385.loga.com.: host name lookup failure
Dec 17 04:38:52 EL385 sendmail[2347]: mBC4ASsl010087: mBH4Aaab002347: return to sender: Cannot send message for 5 days
Dec 17 04:38:52 EL385 sendmail[2347]: mBH4Aaab002347: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=34994, dsn=2.0.0, stat=Sent

I checked /etc/hosts file too but everything seems right?
Completely confused !!!

Most likely this machine is not in DNS (as opposed to being in your /etc/hosts file). Check the DNS entry for this machine to see if it is indeed in DNS. If not, put in a record for it and you should be all set.


All times are GMT -5. The time now is 01:00 AM.