Welcome emails are not sent

questions

Verified User
Joined
Oct 24, 2009
Messages
104
I also get the unrouteable address and I'm unable to send welcome emails to customers (looks pretty bad when it takes a new customer a week to signup.) I am pretty sure this is because I don't have any domains nor email addresses setup under my admin user account...

Here is my error:

2014-01-25 14:48:36 cwd=/usr/local/directadmin 2 args: /usr/sbin/sendmail -t
2014-01-25 14:48:36 1W7C1k-0002h8-Mi <= [email protected] U=diradmin P=local S=2856 T="Your account for customerdomain.com is now ready for use." from <[email protected]> for [email protected]
2014-01-25 14:48:36 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1W7C1k-0002h8-Mi
2014-01-25 14:48:36 cwd=/usr/local/directadmin 2 args: /usr/sbin/sendmail -t
2014-01-25 14:48:36 1W7C1k-0002h8-Mi ** [email protected] F=<[email protected]>: Unrouteable address
2014-01-25 14:48:36 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1W7C1k-0002h8-Mi
2014-01-25 14:48:36 1W7C1k-0002hB-O3 <= [email protected] U=diradmin P=local S=2854 T="Your account for customerdomain.com is now ready for use." from <[email protected]> for [email protected]
2014-01-25 14:48:36 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1W7C1k-0002hB-O3
2014-01-25 14:48:36 1W7C1k-0002hC-OO <= <> R=1W7C1k-0002h8-Mi U=mail P=local S=3714 T="Mail delivery failed: returning message to sender" from <> for [email protected]
2014-01-25 14:48:36 1W7C1k-0002h8-Mi Completed
2014-01-25 14:48:36 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1W7C1k-0002hC-OO
2014-01-25 14:48:36 1W7C1k-0002hC-OO == [email protected] R=userforward defer (-1): failed to stat /usr/local/directadmin/diradmin/. (No such file or directory)
2014-01-25 14:48:37 1W7C1k-0002hB-O3 => [email protected] F=<[email protected]> R=lookuphost T=remote_smtp S=2944 H=gmail-smtp-in.l.google.com [173.194.79.27] X=TLSv1:RC4-SHA:128 C="250 2.0.0 OK 1390690017 eb3si5940338pbd.257 - gsmtp"
2014-01-25 14:48:37 1W7C1k-0002hB-O3 Completed

What are the step by step instructions to sort this out?

As you can see I don't have any admin user domain setup inside DirectAdmin (never have in 5 years.)

2u5ym4k.png
 
Last edited:

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,151
Hello,

If you get any "Unrouteable address" error in the exim mainlog, see this guide:
http://help.directadmin.com/item.php?id=67

As for /usr/local/directadmin/diradmin, just double check that you have this code
Code:
diradmin: :blackhole:
somewhere in your /etc/aliases file.. usually near the bottom.

John
 

questions

Verified User
Joined
Oct 24, 2009
Messages
104
Hello,

If you get any "Unrouteable address" error in the exim mainlog, see this guide:
http://help.directadmin.com/item.php?id=67

As for /usr/local/directadmin/diradmin, just double check that you have this code
Code:
diradmin: :blackhole:
somewhere in your /etc/aliases file.. usually near the bottom.

John

I did the following:

added blackhole code (this made the customer email be sent)

added my domain to directadmin (had to delete a lot of manually created zones)

my system still doesn't send welcome emails to admin (as receipt) and it wont send to [email protected] that used to be the main address of the server but is now hosted at godaddy and used as my company's order form for SEO purporses (sends fine to gmail and hotmail)

next thing i'm doing is searching the entire server for files that might contain that old email in a config file and remove it

after that i will add the hostname to the named zones and db files because it's not resolving yet

i just realized that the weclome emails are being sent as FROM [email protected] and then to [email protected] (which is at godaddy) > is there a way to make my server send from [email protected] even though it doesnt host that domain? also [email protected] is setup as admins email (not sure where? where can i find this?)
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,151
If my memory is correct, you should be able to set the email in your account settings, eg:
Admin Level -> Show All User -> Click the name of the creator -> username's User Data -> Email Address

As this should be what's set in the From header.
But DA still sends as system User "diradmin" (runs as that PID when exim is called)

John
 

questions

Verified User
Joined
Oct 24, 2009
Messages
104
I'm still not getting the admin receipt for the welcome message on new account creation.

Here is my exim main log:

Code:
2014-01-25 18:01:39 cwd=/usr/local/directadmin 2 args: /usr/sbin/sendmail -t
2014-01-25 18:01:39 1W7F2Z-0004oE-G9 <= [email protected] U=diradmin P=local S=2902 T="Your myserver.com account for testingdomainname2.com is now ready for use." from <[email protected]> for [email protected]
2014-01-25 18:01:39 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1W7F2Z-0004oE-G9
2014-01-25 18:01:39 cwd=/usr/local/directadmin 2 args: /usr/sbin/sendmail -t
2014-01-25 18:01:39 1W7F2Z-0004oH-IN <= [email protected].net U=diradmin P=local S=2913 T="Creator Duplicate: Your myserver.com account for testingdomainname2.com is now ready for use." from <[email protected]> for [email protected]
2014-01-25 18:01:39 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1W7F2Z-0004oH-IN
2014-01-25 18:01:39 1W7F2Z-0004oH-IN ** [email protected] F=<[email protected]> R=virtual_aliases: 
2014-01-25 18:01:39 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1W7F2Z-0004oH-IN
2014-01-25 18:01:39 1W7F2Z-0004oL-Ly <= <> R=1W7F2Z-0004oH-IN U=mail P=local S=3740 T="Mail delivery failed: returning message to sender" from <> for [email protected]
2014-01-25 18:01:39 1W7F2Z-0004oH-IN Completed
2014-01-25 18:01:39 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1W7F2Z-0004oL-Ly
2014-01-25 18:01:39 1W7F2Z-0004oL-Ly == [email protected] R=userforward defer (-1): failed to stat /usr/local/directadmin/diradmin/. (No such file or directory)
2014-01-25 18:01:40 1W7F2Z-0004oE-G9 => [email protected] F=<[email protected]> R=lookuphost T=remote_smtp S=2992 H=mx1.hotmail.com [65.55.92.184] C="250  <[email protected]> Queued mail for delivery"
2014-01-25 18:01:40 1W7F2Z-0004oE-G9 Completed

Here is where I think the error is:

Code:
2014-01-25 18:01:39 1W7F2Z-0004oL-Ly <= <> R=1W7F2Z-0004oH-IN U=mail P=local S=3740 T="Mail delivery failed: returning message to sender" from <> for [email][email protected][/email]

notice the <>
 

questions

Verified User
Joined
Oct 24, 2009
Messages
104
ok fixed that problem by actually having to setup an email box(account) for the admin account in the user settings for username: admin.

but since my company domain name and order form are hosted off-server at godaddy for seo purposes this doesn't fix all of my problems...

I'm not getting errors now, but... since I don't want to receive emails at any email address at myserver.net there is a problem... it seems you can only have one email address in DirectAdmin's admin account and it both sends the messages and receives the welcome administrator (creator duplicates)...

what I want is this:

1) to send the welcome emails from [email protected] to the customer and the admin's creator duplicate

2) to receive the creator duplicates at [email protected] (not at [email protected])

3) to have a custom reply-to: field in the welcome emails (both to customer and creator duplicate) that goes to [email protected]



How do I do this? Currently I don't get the creator duplicates because they are going to [email protected] which goes to :blackhole:

I only want to receive email at one email address for my whole company, which is [email protected] and it's hosted at Godaddy.
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,151
Looking at the welcome email code for the "Creator Duplicate".. it will parse through multiple emails, sending a duplicate to all emails in the creator's list.
Note, you can have multiple emails in the admin setting by putting a comma between them.

You can control which of those are set as the "From" to the client, by simply putting it first in the list.

So in your case, the email you'd set for admin would be: The client's welcome email will be from [email protected]
DA will send a "Creator Duplicate" email to both donotreply and sales... but since donotreply is a blackhole, that means you'd get the disired 1 email to [email protected]

I hope that helps clarify how it works! :)

John
 

questions

Verified User
Joined
Oct 24, 2009
Messages
104
So I did this and a weird thing happened:

1) my welcome email creator duplicate was from [email protected] and to [email protected] (which is hosted at Godaddy)

2) my customer welcome was from [email protected]


So I thought I'd try removing [email protected] and all the forwarding :blackhole: forwarding accounts from admin's user data and just putting [email protected] which wasn't working earlier and shouldnt work because it's not an email account on my server and its hosted at Godaddy, and guess what? It works. I just have one email for admin now [email protected] and it's not an email box nor is it a forwarder and IT'S WORKING!

Code:
2014-01-25 21:41:51 1W7ITe-0006mS-Qs => [email][email protected][/email] F=<[email protected]> R=lookuphost T=remote_smtp S=3376 H=smtp.godaddyserver.net [99.999.999.99] X=TLSv1:DHE-RSA-AES256-SHA:256 C="250 2.0.0 JVgB1n00240GP6001 mail accepted for delivery"
2014-01-25 21:41:51 1W7ITe-0006mS-Qs Completed

The mail log looks like Godaddy is allowing myserver.net to send mail through it's SMTP but if I try to send my welcome emails from [email protected] which is hosted on my server it won't do it. (I wonder if anyone can send through Godaddy like that? Possible open relay?)

So just putting [email protected] in admin's user email works even though it's not even a real email account on the server. Phew!:confused:
 
Top