SMTP AUTH, Sendmail client to Postfix server
I'm hoping someone here can help, as I've been beating my head on the wall for a week now with little advancement.
I've found a number of tutorials on setting this up, however none of them have gotten me 100% of the way there. Here's my situation: home-based Fedora server (Core 8), running sendmail 8.14.2-1. Connecting to hosting company's smtp server over port 587, to bypass Verizon's blocking of port 25. My /etc/mail/sendmail.mc file looks like this (comment lines removed): Quote:
Quote:
Quote:
Quote:
|
|
Quote:
|
|
Quote:
Everything mentioned in that post, and the external article referenced, I have done, and it still fails. Here is the relevant lines from /var/log/maillog from my most recent attempt: Quote:
|
You miss LOGIN from the mechanisms:
Quote:
Quote:
|
Quote:
Still fails: Quote:
|
Hi,
Quote:
Code:
AuthInfo:smtp2.datarealm.com:587 "U=user_in_base64" "I=user_in_base64" "P=my_password_in_base64" "M:LOGIN" Regards |
Quote:
(reason: 554 5.7.1 <rickg@datarealm.com>: Relay access denied) I'm ready to start tearing my hair out. |
Hi,
Are you sure you use: Quote:
Code:
AuthInfo:smtp2.datarealm.com "I=user_in_base64" "P=my_password_in_base64" "M:LOGIN" |
Quote:
I removed port from the first line, and the line that had just the port, tested that and it failed. I then removed the U: from the remaining line, and that also failed. I then, on a guess, tried to have both versions of the line...with the FQDN of the host, but with and without the port. That also failed. Here is the current /etc/mail/auth/client-info file: Quote:
Quote:
|
I'm just curious because I've just tested this setup and it works :scratch:
Til now I was using out corporate mail server (on port 25) as a smarthost for sendmail running on my box at home. So I've changed the relay port in sendmail.mc to 587 and it also worked, when I removed the port from authinfo. I've used tcpdump and saw that sendmail was contacting the smarthost on port 587 in both cases (with or without the port), but in the former case I was getting a DSN with a "No AUTH command command has been given" error. Maybe your smarthost does not like the from: address, so change it to something other than root@localhost.local domain and test. I don't know what else to think Regards |
Quote:
Code:
mail -s rickg@myprovider.com |
Use:
Code:
mail -s "Subject" -r someuser@somedomain.com rickg@myprovider.com Quote:
|
Quote:
Code:
mail -s"subject" <to:email> -- -f<from:email> I've tried running sendmail in a higher level of debugging messages, but I was not able to determine from the output if it was correctly doing authentication or not, do you have any recommendations on that, maybe better diagnostic messages would help. |
1 Attachment(s)
What kind mail are you running? The -f option is used by sendmail to define the from: address.
Anyway I've managed to send mail through smtp2.datarealm.com, using your credentials (edit the post above to remove them, because they can be used by others too) Anyway I've attached my sendmail.mc (rename .txt to .mc) and test Regards |
Quote:
There was a reference to include a file which I don't have, so I commented that out, but there are still issues: Code:
554 5.0.0 /etc/mail/sendmail.cf: line 1: invalid argument to V line: "ERSIONID(setup for l" Are we on the same sendmail version? The RPM for mine is: sendmail-8.14.2-1.fc8 (as delivered with Fedora Core 8). |
Use the include statement in your sendmail.mc (include(`/usr/share/sendmail-cf/m4/cf.m4')dnl)
Other than that I guess you can keep the rest as is |
Quote:
Test still failed, results here: Code:
From MAILER-DAEMON@localhost.localdomain Tue Dec 7 14:42:42 2010 Rick |
Well, I don't think we're close at all. In fact you're still getting the same "Relay access denied" error!
I guess you use an authinfo, like this: Code:
AuthInfo:smtp2.datarealm.com "I=user_in_base64" "P=my_password_in_base64" "M:LOGIN" |
Quote:
I keep coming back to the thought that my sendmail, acting as a client, is not properly doing the authentication bit, since both you and I have manually connected to the SMTP daemon at my provider and made it work. How else can we test this? |
Did you try the PLAIN auth option just in case? Or setup a mail client, like Thunderbird, to use directly your ISP mail server.
Quote:
If you feel adventurous you can install a sniffer like wireshark and watch the traffic from you box to the remote smtp server on port 587 and see if sendmail sends the correct credentials. |
Quote:
Quote:
Quote:
|
By, using telnet on smarthost port 587, you bypass sendmail, so it works. The strange thing is that sedmail is not working as a client to the smarthost with the same credentials.
Do you have cyrus-sasl or cyrus-sasl-2 installed? What gives? Code:
sendmail -d0.1 -bv root |grep SASL |
Quote:
Code:
# sendmail -d0.1 -bv root | grep SASL Code:
# rpm -qa | grep sasl Code:
# ps -ef | grep -i sasl |
Well it was expected that sasl2 is installed, but I thought to ask anyway.
MAybe you can increase logging by adding Code:
define(`confLOG_LEVEL', `20')dnl Code:
/usr/sbin/sendmail -L sm-mta -bd -q25m -O LogLevel=20 -X /tmp/smtp.log |
I just noticed these messages that were pulled out of the system logs by "logwatch":
Code:
Warning: STARTTLS file errors: |
Quote:
Code:
Dec 9 10:42:02 rnd sendmail[12034]: alias database /etc/aliases rebuilt by rgreene |
Regarding the certs, I guess you're still using the sendmail.mc from my sendmail that is configured with TLS. Remove those lines in your sendmail.mc and recreate sendmail.cf.
At the beginning of the logs there is the connection to your sendmail while it's receiving your mail. The connection to smarthost start with: Quote:
|
Quote:
|
Remove the following:
Quote:
|
Quote:
Still getting that "mech=" blank entry, scratching my head on that one too. |
|
All times are GMT -5. The time now is 02:08 AM. |