FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 07-08-2012, 04:02 PM
Chris Adams
 
Default sendmail

Once upon a time, rb <roland@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′)
################################################## ######################

--
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-08-2012, 06:33 PM
Heinz Diehl
 
Default sendmail

On 08.07.2012, rb wrote:

> I'm trying to send email, using sendmail, with authentication port 587 and
> credentials.
[....]

Save yourself from a lot of trouble, painfull configuration and even
more painfull debugging, and use postfix as your MTA. Yes, that's not
a solution to your problem, and looks misplaced at first
glance. Mailservers are complex beasts. Do yourself a favour and look
at postfix if you have the time and motivation..

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-08-2012, 07:35 PM
Steven Stern
 
Default sendmail

On 07/08/2012 01:34 AM, rb wrote:
> 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
>
> the file client-info contains:
> AuthInfo:smtp.auth.orange-business.com "U:<my_authentication>"
> "P:<my_password>" "M:PLAIN"
>
> I tried first to send an email via
> telnet smtp.auth.orange-business.com 587
> using the credentials above, which I encoded with Base64 Coder,
> and it worked.
>
> When I use
> mail -s "my subject" <my email> < some_file
> I get in /var/log/maillog:
> Jul 8 07:54:09 godefroy sendmail[19322]: q685q9XO019320:
> to=<roland@cat.be>, ctladdr=<roland@godefroy.fr> (504/500),
> delay=00:02:00, xdelay=00:02:00, mailer=relay, pri=121220,
> relay=smtp.auth.orange-business.com. [194.2.0.87], dsn=4.0.0,
> stat=Deferred: Connection timed out with smtp.auth.orange-business.com.
>
> When I start sendmail with:
> /usr/sbin/sendmail -O LogLevel=14 -bd -X /tmp/output.log
>
> the output.log file gives no errors, but mentions nowhere the authentication.
>
> I'm trying to solve this for weeks now, but without result.
>
> Can somebody help me?
> sendmail-8.13.8-8.1.el5_7
> sendmail-cf-8.13.8-8.1.el5_7

Relevant lines from my sendmail.mc file:

define(`SMART_HOST',`smtp.gmail.com')
define(`RELAY_MAILER_ARGS', `TCP $h 587')
define(`ESMTP_MAILER_ARGS', `TCP $h 587')
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/authinfo')dnl

You'd use "smtp.auth.orange-business.com" where I use "smtp.gmail.com".

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-08-2012, 09:29 PM
Frantisek Hanzlik
 
Default sendmail

rb wrote:
> 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
>
> the file client-info contains:
> AuthInfo:smtp.auth.orange-business.com "U:<my_authentication>"
> "P:<my_password>" "M:PLAIN"
>
> I tried first to send an email via
> telnet smtp.auth.orange-business.com 587
> using the credentials above, which I encoded with Base64 Coder,
> and it worked.
>
> When I use
> mail -s "my subject" <my email> < some_file
> I get in /var/log/maillog:
> Jul 8 07:54:09 godefroy sendmail[19322]: q685q9XO019320:
> to=<roland@cat.be>, ctladdr=<roland@godefroy.fr> (504/500),
> delay=00:02:00, xdelay=00:02:00, mailer=relay, pri=121220,
> relay=smtp.auth.orange-business.com. [194.2.0.87], dsn=4.0.0,
> stat=Deferred: Connection timed out with smtp.auth.orange-business.com.

in addition to use (before mentioned) 'SMART_HOST' for relaying entire
mails to this host, when You want relay only mails for some destination
domains to smtp.auth.orange-business.com:587, You can perhaps define
own mailer, some kind as (it is same as esmtp mailer):

MAILER_DEFINITIONS
Mmy587, P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
E=
, L=990, T=DNS/RFC822/SMTP, A=TCP $h 587

at end of Your sendmail.mc. And then use mailertable for definition
for which domains will be this mailer used as:

.cat.be: my587:smtp.auth.orange-business.com

(and define proper authentication information in access map or with
FEATURE(`authinfo') in separate map)

Franta
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-09-2012, 07:37 AM
roland
 
Default sendmail

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



Date: Sun, 8 Jul 2012 11:02:28 -0500
From: Chris Adams <cmadams@hiwaay.net>
To: users@lists.fedoraproject.org
Subject: Re: sendmail
Message-ID: <20120708160228.GA15900@hiwaay.net>
Content-Type: text/plain; charset=utf-8
Once upon a time, rb <roland@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.







--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-09-2012, 08:23 AM
Ed Greshko
 
Default sendmail

On 07/09/2012 03:37 PM, roland wrote:
> 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?

Ahhh....

SMTP=Simple Mail Transfer Protocol
ESMTP=Extended Simple Mail Transfer Protocol

ESMTP added a framework to SMTP to add additional commands into the SMTP protocol to
extend the usefulness.

You can see what extensions are currently supported by your version your sendmail, or
any MTA, by issuing the ehlo command instead of the helo command.

[egreshko@f17 ~]$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 f17.greshko.com ESMTP Sendmail 8.14.5/8.14.5; Mon, 9 Jul 2012 16:09:07 +0800
helo f17.greshko.com
250 f17.greshko.com Hello localhost [127.0.0.1], pleased to meet you

as opposed to

[egreshko@f17 ~]$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 f17.greshko.com ESMTP Sendmail 8.14.5/8.14.5; Mon, 9 Jul 2012 16:06:45 +0800
ehlo f17.greshko.com
250-f17.greshko.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP

Port 587 and AUTH are 2 different things....

Port 587 is SMTP or ESMTP over SSL. The connection is secured by SSL in the same
manner as HTTPS. HTTP uses port 80 while HTTPS uses 443. But the underlying
protocol is the same. Same goes here.

AUTH is part of ESMTP and defined in rfc4954. It is an Authentication mechanism and
is available via non encrypted (port 25) or encrypted (port 587) connections to the
MTA.

I don't know if that clears anything up for you.....


--
Never be afraid to laugh at yourself, after all, you could be missing out on the joke
of the century. -- Dame Edna Everage
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-09-2012, 08:28 AM
Reindl Harald
 
Default sendmail

Am 09.07.2012 10:23, schrieb Ed Greshko:
> Port 587 and AUTH are 2 different things....
>
> Port 587 is SMTP or ESMTP over SSL. The connection is secured by SSL in the same
> manner as HTTPS. HTTP uses port 80 while HTTPS uses 443. But the underlying
> protocol is the same. Same goes here

Port 587 has NOTHING to do with SSL

Port 587 is per definition SMTP for submission
there is no spec that it has to support SSL

as long you do not configure "smtpd_use_tls" in postfix
there is no SSL support, there CAN NOT be SSL/TLS support
in any magic way because you need certificates which
has to be configured


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-09-2012, 08:49 AM
Ed Greshko
 
Default sendmail

On 07/09/2012 04:23 PM, Ed Greshko wrote:
> Port 587 is SMTP or ESMTP over SSL. The connection is secured by SSL in the same
> manner as HTTPS. HTTP uses port 80 while HTTPS uses 443. But the underlying
> protocol is the same. Same goes here.
>
> AUTH is part of ESMTP and defined in rfc4954. It is an Authentication mechanism and
> is available via non encrypted (port 25) or encrypted (port 587) connections to the
> MTA.
>
> I don't know if that clears anything up for you.....

Well.... What I just said should actually confuse you more.... :-)

When I was typing Port 587 I was thinking about TLS which is port 465!

Sorry about that..... I could make up an excuse....but nobody would believe me. :-)

--
Never be afraid to laugh at yourself, after all, you could be missing out on the joke
of the century. -- Dame Edna Everage
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-09-2012, 09:12 AM
Ed Greshko
 
Default sendmail

On 07/08/2012 02:34 PM, rb wrote:
> 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
>
> the file client-info contains:
> AuthInfo:smtp.auth.orange-business.com "U:<my_authentication>"
> "P:<my_password>" "M:PLAIN"
>
> I tried first to send an email via
> telnet smtp.auth.orange-business.com 587
> using the credentials above, which I encoded with Base64 Coder,
> and it worked.
>
> When I use
> mail -s "my subject" <my email> < some_file
> I get in /var/log/maillog:
> Jul 8 07:54:09 godefroy sendmail[19322]: q685q9XO019320:
> to=<roland@cat.be>, ctladdr=<roland@godefroy.fr> (504/500),
> delay=00:02:00, xdelay=00:02:00, mailer=relay, pri=121220,
> relay=smtp.auth.orange-business.com. [194.2.0.87], dsn=4.0.0,
> stat=Deferred: Connection timed out with smtp.auth.orange-business.com.
>
> When I start sendmail with:
> /usr/sbin/sendmail -O LogLevel=14 -bd -X /tmp/output.log
>
> the output.log file gives no errors, but mentions nowhere the authentication.
>
> I'm trying to solve this for weeks now, but without result.
>
> Can somebody help me?
> sendmail-8.13.8-8.1.el5_7
> sendmail-cf-8.13.8-8.1.el5_7
>

I think I see your problem.....

When you are testing you are using

telnet smtp.auth.orange-business.com 587

But, when sendmail talks to sendmail (your system to orange) it is using port 25. I
don't think there is a way to tell sendmail to use port 587 to connect to a remote
server (MTA--->MTA). Port 587 is supposed to be used for MUA--->MTA communications.

See RFC 6409. http://tools.ietf.org/html/rfc6409

[root@f17 mail]# telnet smtp.auth.orange-business.com 25
Trying 194.2.0.87...
telnet: connect to address 194.2.0.87: Connection timed out

Is what you are seeing.....

To verify this, you can simply run something like wireshark on your system and
capture packets between you system and smtp.auth.orange-business.com to see what
destination port is set.

--
Never be afraid to laugh at yourself, after all, you could be missing out on the joke
of the century. -- Dame Edna Everage
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-09-2012, 09:21 AM
Ed Greshko
 
Default sendmail

On 07/09/2012 05:12 PM, Ed Greshko wrote:
> But, when sendmail talks to sendmail (your system to orange) it is using port 25. I
> don't think there is a way to tell sendmail to use port 587 to connect to a remote
> server (MTA--->MTA). Port 587 is supposed to be used for MUA--->MTA communications.

Oooppssss I think Chris hit it on the nail head.... (His email landed in the
wrong folder due to bad pattern matching on my part and I just read it.....)

################################################## ######################
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′)
################################################## ######################






--
Never be afraid to laugh at yourself, after all, you could be missing out on the joke
of the century. -- Dame Edna Everage
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 

Thread Tools




All times are GMT. The time now is 01:26 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org