LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 03-29-2004, 09:47 AM   #1
pezzer55
LQ Newbie
 
Registered: Feb 2004
Posts: 16

Rep: Reputation: 0
sendmail as a smtp auth client


Hi,
I'm using james as a mail server on a local machine.
I want sendmail to send messages out through james (via smtp).

So, basically i need sendmail to use a relay for all messages, and to use plaintext authentication if necessary.

Following various instructions i have put the following in my /etc/mail/sendmail.mc and /etc/mail/submit.mc

Code:
define(`SMART_HOST',`esmtp:localhost')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
FEATURE(`authinfo', `text -o /etc/mail/authinfo')dnl
define(`confDEF_AUTH_INFO',`/etc/mail/default-auth-info')dnl
define(`confLOG_LEVEL', `15')dnl
then run: make -C /etc/mail

/etc/mail/authinfo :
Code:
AuthInfo:p4-7138.uk2net.com "U:daniel..at..netcase.co.uk" "P:PASSWORD" "M:LOGIN P
LAIN"
AuthInfo:localhost "U:daniel..at..netcase.co.uk" "P:PASSWORD" "M:LOGIN PLAIN"
/etc/mail/default-auth-info :
Code:
daniel..at..eddie.netcase.co.uk
daniel..at..eddie.netcase.co.uk
PASSWORD
localhost
i've tried lottttttsssss of combinations of things, but i cant get it to use authentication - it works if the person is a local recipient, but otherwise i get errors:


Code:
[root@p4-7138 mail]# mail -v d.perry@netcase.co.uk
Subject: test
test
.
Cc:
d.perry@netcase.co.uk... Connecting to p4-7138.uk2net.com. via esmtp...
220 p4-7138.uk2net.com SMTP Server (JAMES SMTP Server 2.1.3) ready Mon, 29 Mar 2
004 15:45:56 +0100 (BST)
>>> EHLO p4-7138.uk2net.com
250-SIZE 10240000
250-p4-7138.uk2net.com Hello p4-7138.uk2net.com (213.232.93.83 [213.232.93.83])
250-AUTH LOGIN PLAIN
250 AUTH=LOGIN PLAIN
>>> MAIL From:<root@p4-7138.uk2net.com>
250 Sender <root@p4-7138.uk2net.com> OK
>>> RCPT To:<d.perry@netcase.co.uk>
530 Authentication Required
>>> RSET
250 OK
/root/dead.letter... Saved message in /root/dead.letter
Closing connection to p4-7138.uk2net.com.
>>> QUIT
221 p4-7138.uk2net.com Service closing transmission channel
[root@p4-7138 mail]#
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail & smtp auth vacilus Linux - Software 18 09-15-2004 03:52 AM
SMTP AUTH, SASL and Sendmail not getting along prozach Linux - Software 0 12-02-2003 06:10 PM
SMTP Auth for sendmail wolftechmn Linux - Networking 4 11-27-2003 02:17 PM
Sendmail / SMTP Auth cleaner416 Linux - Networking 3 10-06-2003 11:40 AM
Sendmail & smtp auth ROAR Linux - Software 1 10-05-2003 11:59 AM


All times are GMT -5. The time now is 01:29 PM.

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