let CRON send emails through SMTP ( debian squeeze )

Posted by supernova on Server Fault See other posts from Server Fault or by supernova
Published on 2012-10-13T07:52:32Z Indexed on 2012/10/13 9:40 UTC
Read the original article Hit count: 134

Filed under:
|
|

i would like to send emails whenever a cronjob has completed, i read that this is possible with exim4.

in /etc/alias i added the line
myuser: [email protected]

in /etc/exim4/update-exim4.conf.conf 
i set dc_smarthost='smtp.myserver.ip::25

and in /etc/exim4/passwd.client i set

smtp.myserver.ip:[email protected]:mypassword

my problem is that i can't see any login at my mailserver, and in the exim logs i saw a few lines with

2012-10-13 09:17:01 1TMvy1-0001fp-F2 ** [email protected] R=nonlocal: Mailing to remote domains not supported
2012-10-13 09:17:01 1TMvy1-0001fr-JE <= <> R=1TMvy1-0001fp-F2 U=Debian-exim P=local S=17426

are there any additional config settings i have to set?

edit : i solved the prev. error by running dpkg-reconfigure, but now i'm facing the following error

<root@debian> R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host

© Server Fault or respective owner

Related posts about smtp

Related posts about cron