LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   sendmail as a smtp auth client (https://www.linuxquestions.org/questions/linux-general-1/sendmail-as-a-smtp-auth-client-163722/)

pezzer55 03-29-2004 08:47 AM

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]#



All times are GMT -5. The time now is 06:10 PM.