sendmail

roland roland at cat.be
Mon Jul 9 07:37:01 UTC 2012


On Sun, 08 Jul 2012 18:42:59 +0200,  
<users-request at lists.fedoraproject.org> wrote:

> Date: Sun, 8 Jul 2012 11:02:28 -0500
> From: Chris Adams <cmadams at hiwaay.net>
> To: users at lists.fedoraproject.org
> Subject: Re: sendmail
> Message-ID: <20120708160228.GA15900 at hiwaay.net>
> Content-Type: text/plain; charset=utf-8
> Once upon a time, rb <roland at cat.be> said:
>> I'm trying to send email, using sendmail, with authentication port 587  
>> and
>> credentials.
>>
>> I modified sendmail.mc as follows:
>> TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
>> define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
>> PLAIN')dnl
>> FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
>>
>> DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
>> DAEMON_OPTIONS(`Port=587, Name=MSA, M=E')dnl
> This makes sendmail listen for incoming connections on ports 25 (smtp)
> and 587; it doesn't change the sending port.  By default, it will always
> send to port 25.
> What you probably want to add are:
> ########################################################################
> dnl Send all outbound mail through this host
> define(`SMART_HOST',`[smtp.auth.orange-business.com]')
> dnl Use port 587 (instead of 25) when sending mail
> define(`RELAY_MAILER_ARGS', `TCP $h 587')
> define(`ESMTP_MAILER_ARGS’, `TCP $h 587′)
> ########################################################################
>
I suppose that if one uses the ESMTP option, one has to install esmtp and  
configure it as needed.
as discribed in :  
http://www.techrepublic.com/blog/opensource/send-mail-with-esmtp-for-a-simple-single-user-system/232
How do you tell sendmail to use esmtp as the email deliverer?

I dropped that line and  used a authinfo file as described above and it  
worked.
Probably is esmtp a simpler way to do it for different users and different  
domains?



-- 

Roland Brouwers


C.A.T.









More information about the users mailing list