No welcome's mail being sended!

Thafusion

Verified User
Joined
Oct 8, 2003
Messages
51
Just installed DA on a box and nobody gets a welcome message so i checked the /var/log/directadmin/error.log and saw the following:

2007:01:31-00:08:42: Error sending email to startrek for account creation
2007:01:31-00:08:42: An error occurred while sending the mail
2007:01:31-00:08:42: Error sending email to startrek for account creation
2007:01:31-00:50:34: An error occurred while sending the mail
2007:01:31-00:50:34: Error sending email to test2 for account creation
2007:01:31-00:50:34: An error occurred while sending the mail
2007:01:31-00:50:34: Error sending email to test2 for account creation
2007:01:31-00:54:30: An error occurred while sending the mail
2007:01:31-00:54:30: Error sending email to test5 for account creation
2007:01:31-00:54:30: An error occurred while sending the mail
2007:01:31-00:54:30: Error sending email to test5 for account creation

I reinstalled Exim 4.66 but that didn't help any clue?:confused:
 
Are these local accounts?

If so, do they exist on the server?

If so, then you might want to use exim -bh to test a delivery through the shell to see why it's failing.

Click on the link and scroll down for an example on how to use exim -bh.

Jeff
 
Thanks for the answer, exim -bh seems to be working fine:
>>> calling virtual_user router
>>> routed by virtual_user router
>>> ----------- end verify ------------
>>> accept: condition test succeeded
250 Accepted

I also tried ubimiau webmail and i can send and recieve emails. Only thing that isn't working seems to be the welcome message:confused:.
 
DirectAdmin calls /usr/sbin/sendmail.
Make sure that path exists. It should be a symbolic link to exim.
Also, /usr/sbin/exim should be chmod with a sticky bit:

chmod 4755 /usr/sbin/exim

without the 4755, the exim binary will run as the user who called it. Root access is required, so the 4755 is needed so the binary can get root access from a non-root user that calls it (eg: diradmin). That would also explain why there might not be any log entries... root access is needed first to be able to write to the logs.

John
 
Followup:

/usr/sbin/sendmail wasn't a symbolic link. However, it couldn't be moved due to some restrictions imposed by the file system. I ran
Code:
chattr = /usr/sbin/sendmail
so that I could remove it, then created the default symbolic link
Code:
ln -s exim /usr/sbin/sendmail
John
 
Back
Top