Re: Authentication with SMART_HOST in sendmail? [SOLVED]

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well, after some tests it works, but my ISP doesn't allow me to send
mails because it isn't configured to relay for my domain, but the main
purpose of my question is solved, thanks to all you guys.

In summary:
This was done with sendmail-8.13
1. Create /etc/mail/auth and chmod it to 700
2. Create a file for authentication: /etc/mail/auth/client-info with
this info: AuthInfo:smtp.isp.net "U:root" "I:ispaccount" "P:isppassword"
3. cd /etc/mail/auth and makemap hash client-info < client-info
4. chmod 600 client-info*
5. In /etc/mail/sendmail.mc add this lines:
define(`SMART_HOST',`smtp.isp.net')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
6. service sendmail restart

It worked for me, my ISP just relays on IPs on their network, doesn't
require SMTP AUTH, but I wanted to learn how to do it, now I can test
with other servers.

By the way, is possible to do it with gmail smtp server I guess, but it
uses a different port (587) and TLS for security, how would I specify in
my sendmail to go to that port? just adding ":587" to smtp.isp.net in
client-info and sendmail.mc?, I think it would be a little bit confusing
for sendmail, I haven't tested, just asking.

David
- --
David Limón Romero <dlr[@]mega.net.mx>
http://www.mega.net.mx
GPG/PGP Public Key:0xAC471FBB
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFE7zgBOb7yNqxHH7sRAhcMAJ47H1C8zKPQg9JolAuVgjvhcZC3/gCg9Vcw
EJBPJ+DyjSuCDwQbMK+tpyc=
=tZ1W
-----END PGP SIGNATURE-----


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux