On 2012-02-18 at 17:27:52, Csanyi Pal wrote:
> It seems that email-reminder works but my exim4 MTA isn't configured
> properly.
Indeed.
The first thing you should do to make it work with gmail's SMTP server is to
"dpkg-reconfigure -plow email-reminder" and set the from address to be your
gmail address. I don't think that gmail likes invalid addresses like
"root@localhost".
Then you need to enable authentication and potentially SSL. I'm not sure how
to do it in Exim, but in Postfix, here's what I've got in my
/etc/postfix/main.cf:
# smarthost configuration using Gmail over SSL
relayhost = smtp.gmail.com:587
smtp_generic_maps = hash:/etc/postfix/generic
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = fingerprint
smtp_tls_mandatory_ciphers = high
smtp_tls_mandatory_protocols = !SSLv2, !SSLv3
smtp_tls_fingerprint_digest = sha1
smtp_tls_fingerprint_cert_match =
F3:92:AE:B4:28:FE:64:03:6F:E1:55:ED:71:9E:5F:F6:88:90:5A:57
and I've got this in my /etc/postfix/sasl_password:
smtp.gmail.com [email protected]:yourpassword
You can then test your mail server to make sure it sends out emails by using
the "mail" utility on the command line. Once that works, you can try
email-reminder again.
Cheers,
Francois
--
Francois Marier identi.ca/fmarier
http://fmarier.org twitter.com/fmarier
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]