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-----

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux