LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 09-09-2006, 03:53 PM   #1
DarkAge
LQ Newbie
 
Registered: Sep 2006
Posts: 15

Rep: Reputation: 0
sendmail domain name issue - know problem - need solution


To summarize the issue:
Mails sent from my domains (multiple domains - one static IP) are being rejected by hotmail/yahoo/etc with the following error messages:
DSN: User unknown
DSN: Service unavailable
DSN: Data format error

A minority of emails are being sent without problems.

A little info on my setup:
- My sendmail is configured as it is out of the box (i havent changed anything)
- My Server is hosting 26 domains - all mapped to one IP. All domains are sending email.
- No MX Records are configured as im only interested in sending mails not receiving them.
- Im only sending mails via PHP.

Snippet from maillog describing my problem:
Code:
Sep  8 18:57:27 VS5003 sendmail[32136]: k88GvRi4032136: from=root, size=15, class=0, nrcpts=1, msgid=<200609081657.k88GvRi4032136@localhost.localdomain>, relay=root@localhost
Sep  8 18:57:27 VS5003 sendmail[32137]: k88GvR1I032137: from=<root@localhost.localdomain>, size=315, class=0, nrcpts=1, msgid=<200609081657.k88GvRi4032136@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=VS5003 [127.0.0.1]
Sep  8 18:57:27 VS5003 sendmail[32136]: k88GvRi4032136: to=somerandomemail@hotmail.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30015, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k88GvR1I032137 Message accepted for delivery)
Sep  8 18:57:28 VS5003 sendmail[32139]: k88GvR1I032137: to=<somerandomemail@hotmail.com>, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120315, relay=mx1.hotmail.com. [65.54.245.8], dsn=5.0.0, stat=Service unavailable
Sep  8 18:57:28 VS5003 sendmail[32139]: k88GvR1I032137: k88GvS1I032139: DSN: Service unavailable
Sep  8 18:57:28 VS5003 sendmail[32139]: k88GvS1I032139: to=<root@localhost.localdomain>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31557, dsn=2.0.0, stat=Sent
After som troubleshooting i found the problem. Problem was that i had to set the Dj field in the sendmail.cf file to my domain eg Dj domaina.com

Now problem is that my server is hosting many domains, eg:
domaina.com
domainb.com
domainc.com
.
.
domainz.com

So if i set Dj to domaina.com i can receive mails from domaina.com in my hotmail account but not from any other domain?.com

So if i set Dj to domainb.com i can receive mails from domainb.com in my hotmail account but not from any other domain?.com

And it continues.

Is it possible to set the Dj value to multiple domains ?

Or maybe i should try to find out why i have to set the Dj field, as that is used when sendmail cannot figure out the domainname, then it can be set explicitly with Dj. If i can let sendmail figure it out automatically i dont need to set it and it should work with all my 26 domains (i think).

Please provide some input. thanks
 
Old 09-11-2006, 12:56 PM   #2
DarkAge
LQ Newbie
 
Registered: Sep 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Ive isolated the problem to my server name presented at HELO/EHLO.

Im using this test mail:
cbl<DOT>abuseat<DOT>org/helocheck.html

and this is the reply i get :
550 Your HELO name for IP address 217.195.xxx.xxx was "localhost.localdomain"

Now for this to work my HELO name should be the domain name from which im sending the email from.

Any suggestions on how to achieve this ?

I do set the from field in the email header and the from field in the mail envelope header.
 
  


Reply

Tags
sendmail


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail unresolved domain issue Bake-SaleNet Linux - Networking 0 11-30-2003 09:27 AM
sendmail domain problem slack66 Linux - General 1 08-17-2003 04:10 PM
domain problem in sendmail klintonray Linux - Software 1 07-28-2003 12:31 AM
sendmail domain name problem terek Linux - Newbie 3 06-16-2002 02:32 PM
Sendmail host/domain problem. Tarantismic Yak Linux - General 2 05-08-2001 06:25 PM


All times are GMT -5. The time now is 08:00 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration