Sendmail authentication for SMART_HOST relay
I'm trying to configure sendmail to send e-mail through my ISP's SMTP gateway. I've found the SMART_HOST directive in /etc/mail/sendmail.mc and set it thus:
Code:
dnl # Uncomment and edit the following line if your outgoing mail needs to I believe the problem will be resolved if I can turn on SMTP authentication when sendmail forwards e-mail using the SMART_HOST directive, but I can't see how to do that. Can anyone point me in the right direction? |
cdhgee
Depends what version of sendmail you are using Before sendmail-8.12 Add to sendmail.mc Code:
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl Code:
#cd /etc/mail Code:
AuthInfo:your.isp.net "U:smmsp" "I:user" "P:password" Then Code:
# makemap hash client-info < client-info Code:
# chmod 644 client-info Code:
auth# ls -a -l As of sendmail-8.12 "authinfo" is built into sendmail.cf so all you have to do is add your "AuthInfo" statement to /etc/mail/access Insert into /etc/mail/access Code:
AuthInfo:your.isp.net "U:smmsp" "I:user" "P:password" Then Code:
# makemap hash /etc/mail/access.db < /etc/mail/access Hope it helps Pete |
I'm trying to do something similar. Is it possible to encrypt the password in the /etc/mail/access file? (edit: so that someone browsing the file can't read it)
Sorry major newb! :newbie: |
No ... That's why the poster had you (the root user) change the permission on the auth folder to 700
Code:
#chmod 700 auth -- Tony |
sorry I was refering to method 2: using sendmail 8.12 or greater. Which doesn't say anything about chmoding the /etc/mail/access file. Since access must be built into a database I suppose I might be able to simply change the password to something else after the database is mapped. But that could cause a problem if someone else maps the database without changing the access file. I guess just chmodding that file is best.
Thanks. |
Sorry, I'm still having problems.
I'm running sendmail on Fedora Core 2, the version is 8.12.11-4.6 for i386. I added the line: Code:
AuthInfo:smtp.domain.com "U:smmsp" "I:user" "P:password" I make the access.db map and restart sendmail like so: Code:
[root@localhost mail]# makemap hash /etc/mail/access.db < /etc/mail/access Which resulted in me receiving this returned message: Code:
From MAILER-DAEMON@localhost.localdomain Wed Sep 7 14:47:24 2005 |
I get a message back when I use the other smtp server with smart host.
Here is the reply: Code:
From MAILER-DAEMON@localhost.localdomain Wed Sep 7 16:12:16 2005 |
Solution ?
Has anyone got a solution that works for this as I am having the very same issue I have done a lot of searching on the net and nothing is comming up. I have looked at the sendmail man pages I came away more confused.
Cheers, GDA2004 |
Authentication SMTP Relay
Quote:
Log: Br. [X.X.X.X], dsn = 4.0.0, stat = Deferred: Temporary AUTH failure Apr 18 16:00:36 meuservidor-pc sendmail [7907]: starting daemon (8.14.4): SMTP + queueing @ 01: 00: 00 Apr 18 16:00:36 meuservidor-pc sendmail [7908]: v3IIX78T006476: AUTH = client, available mechanisms do not fulfill requirements Apr 18 16:00:36 meuservidor-pc sendmail [7908]: AUTH = client, relay = meuservidor.com.br., Temporary failure, connection abort Apr 18 16:00:36 meuservidor-pc sm-msp-queue [7916]: starting daemon (8.14.4): queueing @ 01: 00: 00 Apr 18 16:00:36 meuservidor-pc sendmail [7908]: v3IIX78T006476: to = <jsilva@server.com.br>, delay = 00: 26: 58, xdelay = 00: 00: 00, mailer = relay, pri = 840006, relay = meuservidor.com.br. [X.X.X.X], dsn = 4.0.0, stat = Deferred: Temporary AUTH failure". Can you help me? please! |
All times are GMT -5. The time now is 04:52 PM. |