Tuxbee
August 11th, 2005, 08:54 AM
Hello all,
This is my first post here, and my first Howto in general!
Hope it works for you. ;)
I lost a whole day trying to get this working, now hopefully you wont, after reading.
You want a sendmail compatible mail system
You only need to send mail to the internet
For example: you want to have your local PHP webserver mailing
Go system > administer > synaptic
Uninstall postfix
(your old Mail Delivery Agent)
(choose complete uninstall to get rid of the config files)
Install esmtp; esmtp-run; libesmtp5
The installer asks your internet domain.
If you have no internet domain, supply a fantasy name like "domain.invalid"
Then check the config file /etc/esmtprc
For a basic setup, make it look like this:
hostname = mail.myisp.com:25
username = "myself"
password = "secret"
starttls = disabled
mda "/usr/bin/procmail -d %T"
Leave the username/password string empty if you don't need authentication.
It should be done!
To send a test mail, you can type
echo "test" | sendmail youraddress@hotmailorherever.com
I didn't figure how to use TLS for outgoing mail authentication, guess that's difficult because you need a certificate file, and it's all new and still under development.
So, no gmail sending, sorry.
Also check out:
http://esmtp.sourceforge.net/manual.html
You might want to try sSMTP instead:
ftp://sunsite.unc.edu/pub/Linux/system/mail/mta/
Or nullmailer (in the repository as well, but I didn't get it working)
http://untroubled.org/nullmailer/
This is my first post here, and my first Howto in general!
Hope it works for you. ;)
I lost a whole day trying to get this working, now hopefully you wont, after reading.
You want a sendmail compatible mail system
You only need to send mail to the internet
For example: you want to have your local PHP webserver mailing
Go system > administer > synaptic
Uninstall postfix
(your old Mail Delivery Agent)
(choose complete uninstall to get rid of the config files)
Install esmtp; esmtp-run; libesmtp5
The installer asks your internet domain.
If you have no internet domain, supply a fantasy name like "domain.invalid"
Then check the config file /etc/esmtprc
For a basic setup, make it look like this:
hostname = mail.myisp.com:25
username = "myself"
password = "secret"
starttls = disabled
mda "/usr/bin/procmail -d %T"
Leave the username/password string empty if you don't need authentication.
It should be done!
To send a test mail, you can type
echo "test" | sendmail youraddress@hotmailorherever.com
I didn't figure how to use TLS for outgoing mail authentication, guess that's difficult because you need a certificate file, and it's all new and still under development.
So, no gmail sending, sorry.
Also check out:
http://esmtp.sourceforge.net/manual.html
You might want to try sSMTP instead:
ftp://sunsite.unc.edu/pub/Linux/system/mail/mta/
Or nullmailer (in the repository as well, but I didn't get it working)
http://untroubled.org/nullmailer/