LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2012, 07:52 AM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Rep: Reputation: 30
sendmail not working


I am trying to test sendmail as it seems to have stopped sending emails.
Any ideas what could be wrong?

Mar 28 13:51:06 jason sendmail[2226]: STARTTLS=client, relay=mx2.servage.net., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Mar 28 13:51:06 jason sendmail[2226]: q2SBp4MY002224: to=<xxx@pxxx.fr>, ctladdr=<root@jason.xxxxx.com> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=120296, relay=mx2.servage.net. [77.232.76.20], dsn=4.1.8, stat=Deferred: 450 4.1.8 <root@localhost.localdomain>: Sender address rejected: Domain not found
 
Old 03-28-2012, 11:02 AM   #2
linux_kung_fu
LQ Newbie
 
Registered: Jan 2012
Posts: 10

Rep: Reputation: 0
It looks like the remote server is rejecting the message as the sender address is set to root@localhost.localdomain, and that domain doesn't exist. You need to research where to set the proper outdoing domain in sendmail, and if you need to change the 'from' username, look into masquerading.
 
Old 03-28-2012, 11:41 AM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
seems to be working sometimes and not others?

Mar 28 17:30:07 myname sendmail[3351]: q2SFU6LT003351: to=aide@mysite.fr, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30430, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q2SFU78R003356 Message accepted for delivery)
Mar 28 17:30:08 myname sendmail[3358]: STARTTLS=client, relay=mx1.servage.net., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Mar 28 17:30:08 myname sendmail[3355]: q2SFU6KH003353: to=<blahenero4@hotmail.com>, ctladdr=<root@myname.dns26.com> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=121397, relay=mx4.hotmail.com. [65.55.92.184], dsn=2.0.0, stat=Sent ( <201203281530.q2SFU6XP003352@myname.dns26.com> Queued mail for delivery)
Mar 28 17:30:08 myname sendmail[3358]: q2SFU78R003356: to=<aide@mysite.fr>, ctladdr=<root@myname.dns26.com> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120669, relay=mx1.servage.net. [77.232.76.20], dsn=4.1.8, stat=Deferred: 450 4.1.8 <root@localhost.localdomain>: Sender address rejected: Domain not found
Mar 28 17:30:08 myname sendmail[3358]: STARTTLS=client, relay=mx2.servage.net., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Mar 28 17:30:09 myname sendmail[3358]: q2SFU78R003356: to=<aide@mysite.fr>, ctladdr=<root@myname.dns26.com> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=120669, relay=mx2.servage.net. [77.232.76.20], dsn=4.1.8, stat=Deferred: 450 4.1.8 <root@localhost.localdomain>: Sender address rejected: Domain not found
Mar 28 17:37:57 myname sendmail[3400]: alias database /etc/aliases rebuilt by root
Mar 28 17:37:57 myname sendmail[3400]: /etc/aliases: 77 aliases, longest 19 bytes, 788 bytes total
 
Old 03-28-2012, 11:51 AM   #4
linux_kung_fu
LQ Newbie
 
Registered: Jan 2012
Posts: 10

Rep: Reputation: 0
Are the messages that do get delivered and the ones that don't get delivered, are they being generated the same way? Are you noticing anything inside /etc/aliases (ex. any reference to localhost.localdomain)?

What is the output of /path/to/sendmail-bin/sendmail -bv aide@mysite.fr ?
 
Old 03-28-2012, 07:46 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
If you separate the output, its easier to read/debug
Code:
Mar 28 17:30:07 myname sendmail[3351]: q2SFU6LT003351: to=aide@mysite.fr, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30430, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q2SFU78R003356 Message accepted for delivery)

Mar 28 17:30:08 myname sendmail[3358]: STARTTLS=client, relay=mx1.servage.net., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256

Mar 28 17:30:08 myname sendmail[3355]: q2SFU6KH003353: to=<blahenero4@hotmail.com>, ctladdr=<root@myname.dns26.com> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=121397, relay=mx4.hotmail.com. [65.55.92.184], dsn=2.0.0, stat=Sent ( <201203281530.q2SFU6XP003352@myname.dns26.com> Queued mail for delivery)

Mar 28 17:30:08 myname sendmail[3358]: q2SFU78R003356: to=<aide@mysite.fr>, ctladdr=<root@myname.dns26.com> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120669, relay=mx1.servage.net. [77.232.76.20], dsn=4.1.8, stat=Deferred: 450 4.1.8 <root@localhost.localdomain>: Sender address rejected: Domain not found

Mar 28 17:30:08 myname sendmail[3358]: STARTTLS=client, relay=mx2.servage.net., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256

Mar 28 17:30:09 myname sendmail[3358]: q2SFU78R003356: to=<aide@mysite.fr>, ctladdr=<root@myname.dns26.com> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=120669, relay=mx2.servage.net. [77.232.76.20], dsn=4.1.8, stat=Deferred: 450 4.1.8 <root@localhost.localdomain>: Sender address rejected: Domain not found

Mar 28 17:37:57 myname sendmail[3400]: alias database /etc/aliases rebuilt by root
Mar 28 17:37:57 myname sendmail[3400]: /etc/aliases: 77 aliases, longest 19 bytes, 788 bytes total
Now we can see

msg 1 OK

msg 2: ' relay=mx1.servage.net.,' note that's an unfinished/invalid domain name

msg 3: ok

msg 4: 'relay=mx1.servage.net.' as msg 2

msg 5: as msg 2

msg 6: and again ...

msgs 7, 8: irrelevant; you're rebuilding aliases db

HTH
 
Old 03-29-2012, 03:24 AM   #6
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by linux_kung_fu View Post
Are the messages that do get delivered and the ones that don't get delivered, are they being generated the same way? Are you noticing anything inside /etc/aliases (ex. any reference to localhost.localdomain)?

What is the output of /path/to/sendmail-bin/sendmail -bv aide@mysite.fr ?
no, nothing in aliases:

[root@jason ~]# sendmail -bv aide@mysite.fr
aide@mysite.fr... deliverable: mailer esmtp, host mysite.fr., user aide@mysite.fr

Also, this only stopped working recently.
Before that, the scripts in PHP were working fine and all have from addresses so not sure how it is getting changed to this localdomain one.

Also, it is sometimes reported as this:
<root@myname.dns26.com>

How do I change the root email address?

Last edited by qwertyjjj; 03-29-2012 at 03:30 AM.
 
Old 03-29-2012, 03:43 AM   #7
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by chrism01 View Post
If you separate the output, its easier to read/debug
Code:
Mar 28 17:30:07 myname sendmail[3351]: q2SFU6LT003351: to=aide@mysite.fr, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30430, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q2SFU78R003356 Message accepted for delivery)

Mar 28 17:30:08 myname sendmail[3358]: STARTTLS=client, relay=mx1.servage.net., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256

Mar 28 17:30:08 myname sendmail[3355]: q2SFU6KH003353: to=<blahenero4@hotmail.com>, ctladdr=<root@myname.dns26.com> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=121397, relay=mx4.hotmail.com. [65.55.92.184], dsn=2.0.0, stat=Sent ( <201203281530.q2SFU6XP003352@myname.dns26.com> Queued mail for delivery)

Mar 28 17:30:08 myname sendmail[3358]: q2SFU78R003356: to=<aide@mysite.fr>, ctladdr=<root@myname.dns26.com> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120669, relay=mx1.servage.net. [77.232.76.20], dsn=4.1.8, stat=Deferred: 450 4.1.8 <root@localhost.localdomain>: Sender address rejected: Domain not found

Mar 28 17:30:08 myname sendmail[3358]: STARTTLS=client, relay=mx2.servage.net., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256

Mar 28 17:30:09 myname sendmail[3358]: q2SFU78R003356: to=<aide@mysite.fr>, ctladdr=<root@myname.dns26.com> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=120669, relay=mx2.servage.net. [77.232.76.20], dsn=4.1.8, stat=Deferred: 450 4.1.8 <root@localhost.localdomain>: Sender address rejected: Domain not found

Mar 28 17:37:57 myname sendmail[3400]: alias database /etc/aliases rebuilt by root
Mar 28 17:37:57 myname sendmail[3400]: /etc/aliases: 77 aliases, longest 19 bytes, 788 bytes total
Now we can see

msg 1 OK

msg 2: ' relay=mx1.servage.net.,' note that's an unfinished/invalid domain name

msg 3: ok

msg 4: 'relay=mx1.servage.net.' as msg 2

msg 5: as msg 2

msg 6: and again ...

msgs 7, 8: irrelevant; you're rebuilding aliases db

HTH
Those are valid mx addresses aren't they? They have worked for ages.
I tried doing this: http://www.cyberciti.biz/tips/howto-...l-address.html

Still doesn;t work.
 
Old 03-29-2012, 04:14 AM   #8
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
SOLVED.
POSTFIX is working and with those aliases all seems ok.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail not working RMLinux Linux - Newbie 2 02-16-2009 02:00 AM
Changing port in sendmail, sendmail not working. flschou Linux - Newbie 4 01-16-2008 10:03 AM
Sendmail not working quite right kerinism1 Linux - Server 3 09-04-2007 12:50 PM
sendmail is not working & on $prompt the cmd sendmail hangs Pavan mahoorker Linux - Software 1 04-04-2006 04:57 PM
Sendmail not working at all. EL3CTRO Linux - Networking 13 05-03-2003 07:06 AM


All times are GMT -5. The time now is 06:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration