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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
03-28-2012, 06:52 AM
#1
Senior Member
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013
Rep:
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
03-28-2012, 10:02 AM
#2
LQ Newbie
Registered: Jan 2012
Posts: 10
Rep:
It looks like the remote server is rejecting the message as the sender address is set to
root@localhost.locald omain, 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.
03-28-2012, 10:41 AM
#3
Senior Member
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013
Original Poster
Rep:
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
03-28-2012, 10:51 AM
#4
LQ Newbie
Registered: Jan 2012
Posts: 10
Rep:
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 ?
03-28-2012, 06:46 PM
#5
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359
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
03-29-2012, 02:24 AM
#6
Senior Member
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013
Original Poster
Rep:
Quote:
Originally Posted by
linux_kung_fu
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 02:30 AM .
03-29-2012, 02:43 AM
#7
Senior Member
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013
Original Poster
Rep:
Quote:
Originally Posted by
chrism01
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.
03-29-2012, 03:14 AM
#8
Senior Member
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013
Original Poster
Rep:
SOLVED.
POSTFIX is working and with those aliases all seems ok.
All times are GMT -5. The time now is 06:28 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News