LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2005, 08:31 AM   #1
Bilb
LQ Newbie
 
Registered: Jun 2003
Posts: 24

Rep: Reputation: 15
Send Mail auth problem


I have been looking at this for a couple of days now without any luck. All other posts I've seen on here and elsewhere havent fully helped.

The problem is I can not send an email from my linux server through the mail server. I can do this from telnet to the mail server from the linux server but not through sendmail.


The errors I get is:
Code:
Aug  1 14:11:01 csak2 sendmail[22860]: j71DB0QU022860: from=root, size=46, class=0, nrcpts=1, msgid=<200508011311.j71DB0QU022860@csak2.XX.co.uk>, relay=root@localhost
Aug  1 14:11:01 csak2 sendmail[22860]: j71DB0QU022860: to=kec@XX.co.uk, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30046, relay=inty.XX.co.uk. [10.0.0.1], dsn=5.7.1, stat=User unknown
Aug  1 14:11:01 csak2 sendmail[22860]: j71DB0QU022860: j71DB0QV022860: DSN: User unknown
Aug  1 14:11:02 csak2 sendmail[22862]: j71DB2VC022862: from=<>, size=2195, class=0, nrcpts=1, msgid=<200508011311.j71DB0QV022860@csak2.XX.co.uk>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Aug  1 14:11:02 csak2 sendmail[22860]: j71DB0QV022860: to=root, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=31070, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (j71DB2VC022862 Message accepted for delivery)
Aug  1 14:11:02 csak2 sendmail[22863]: j71DB2VC022862: to=<root@csak2.XX.co.uk>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32429, dsn=2.0.0, stat=Sent
I currently has my sendmail.cf setup with:
# authinfo list database: contains info for authentication as client
Kauthinfo hash /etc/mail/auth/client-info

so it has the details to login to the mail server to send mail outside the network.

The bounced email also shows this:
----- The following addresses had permanent fatal errors -----
kec@XX.co.uk
(reason: 550 5.7.1 <kec@XX.co.uk>... Relaying denied. IP name lookup failed [10.0.0.23])


Has anyone got any ideas that may help me get this to work?
 
Old 08-02-2005, 05:55 PM   #2
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
Bilb

Do you control the outgoing mail server ?

Is it a Sendmail server ?

Pete
 
Old 08-03-2005, 09:51 AM   #3
Bilb
LQ Newbie
 
Registered: Jun 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Hi Pete,

No, as the server is on a corp. customer site. I can get settings changed on the outgoing mail server and we have setup an account on the mail server for this box to use.

The mail server is an Inty server (exoserver)

Last edited by Bilb; 08-03-2005 at 09:53 AM.
 
Old 08-03-2005, 01:29 PM   #4
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
Bilb

Let me start by saying that I am no Sendmail guru particularly in the corporate world

But I can share with you my observations and see if it helps

From the section of mail logs you've posted it appears that sendmail is rejecting the mail before it attemps to connect to the outgoing mail server
Code:
relay=inty.XX.co.uk. [10.0.0.1], dsn=5.7.1, stat=User unknown
I assume that "inty.XX.co.uk." is the machine that the mail originates from

In /etc/mail/access add
Code:
XX.co.uk     RELAY
This will accept any host in the XX.co.uk domain

Or to be more restictive you can add just
Code:
inty.XX.co.uk     RELAY
This will only accept inty.XX.co.uk and no other host in the XX.co.uk domain

Instead of domain names you can use IP addresses with the same result

You will then have to create "access.db" how you do this depends on your distribution

Restart sendmail

This should at least allow the mail to be pasted through sendmail to the outgoing server

If all of this is way off mark please feel free to ignore it

Pete
 
Old 08-03-2005, 04:25 PM   #5
hlslaughter
Member
 
Registered: May 2003
Location: San Jose, CA
Distribution: Ubuntu
Posts: 47

Rep: Reputation: 15
most smtp servers won't accept mail from end-user type boxes, since that's how a lot of spammers send email. it has to come from a 'legit' source, like an isp.

try setting this in /etc/mail/sendmail.cf

Code:
# "Smart" relay host (may be null)
DSyourmailhost.yourisphere.com
 
Old 08-04-2005, 03:45 AM   #6
Bilb
LQ Newbie
 
Registered: Jun 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Hi Pete,

Code:
Let me start by saying that I am no Sendmail guru particularly in the corporate world
Thank you for your help anyway tho.


I do already have the network range in access file (10.0.0.0/24) I have added inty.XX.co.uk as well and rebuilt access.db but I still have the same error


hlslaughter,
What I am trying to do is send mail through a mail server which requires auth login

The mail server can send mail fine if I telnet into it and write the mail.
 
Old 08-08-2005, 07:23 AM   #7
Bilb
LQ Newbie
 
Registered: Jun 2003
Posts: 24

Original Poster
Rep: Reputation: 15
no one got any idea's on this problem?
 
Old 08-08-2005, 11:53 AM   #8
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
Bilb

What version of Sendmail are you using ?

As of version 8.12 Authinfo is built into sendmail.cf, adding a statement to sendmail.mc overrides the default configuration

If your version is 8.12 or above try this

Remove the "Authinfo" statement from sendmail.mc, you can do this with "dnl+space" like this
Code:
dnl FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
Edit /etc/mail/access add to it

Code:
AuthInfo:domain.com "U:smmsp" "I:user" "P:password"
Don'nt know if you got a smiley but it's Password
Damn smiley ":" between P and password

Replace "domain.com" with the domain name of the server you are trying to relay through, probably "smtp.domain.com" or whatever

Leave "U:smmsp" as is

Replace "user" and "password" with your own

Make /etc/mail/access.db

Make /etc/mail/sendmail.cf

Restart sendmail

Worked here, both methods are listed

http://www.linuxquestions.org/questi...hreadid=349947

Pete

Last edited by Pete M; 08-08-2005 at 11:58 AM.
 
Old 08-09-2005, 03:16 AM   #9
Bilb
LQ Newbie
 
Registered: Jun 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Thx Pete, i'll go thro as u said up there and see what happens.


Im using sendmail 8.12.11 btw


Also in the "AuthInfo:domain.com "U:smmsp" "I:user" "Password"" do you put the username & password in using base64 or just in plain text?
 
Old 08-09-2005, 07:37 AM   #10
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
Bilb

Quote:
do you put the username & password in using base64 or just in plain text?
Plain text then create access.db

Tried this on 2 mail servers on my LAN and also relaying through my ISP

Pete
 
Old 08-10-2005, 08:01 AM   #11
Bilb
LQ Newbie
 
Registered: Jun 2003
Posts: 24

Original Poster
Rep: Reputation: 15
ok, it does seem to work but no mail has been received

Im guessing it is something on the inty server now, i'll wait for the bounce email to get back and see what it says.

I did also try this on a box on 1 of our networks. This worked fine 1st time using the above, lol

Thanks again for your help.



/me awaits bounced email
 
  


Reply



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
Send Mail problem nkutty Linux - Security 2 11-28-2005 03:28 AM
Shel script mail send ("/" in mail address) problem anaid Linux - Networking 3 08-23-2005 07:41 AM
Send Mail Problem mallikarjun Linux - Networking 4 05-17-2002 09:22 AM
Send mail configuration problem saravanan1979 Linux - Networking 3 05-17-2002 08:21 AM
Problem with Send mail Buduu Linux - General 2 05-28-2001 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:50 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
Open Source Consulting | Domain Registration