Re: sendmail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>, ctladdr=<roland@xxxxxxxxxxx> (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@xxxxxxxxxxxxxxxxxxxxxxx
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


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux