Account creation email from

Chrysalis

Verified User
Joined
Aug 25, 2004
Messages
1,321
Location
uk
Hi my welcome emails sent out are like this in the header.

User Admin [[email protected]]; on behalf of; admin [[email protected]]

I want it to just say the reply to address with the behalf of, this has also upset my resellers since it shows us in their emails, can this be changed?

thanks
 
When adding a new user through the admin reseller level, there is a link at the bottom that says "Edit User Message". Any other emails generated by DirectAdmin can not be changed, yet.
 
Hello,

I'll look into this. I know that exim is adding it because like Jeff said, the email is being sent from the system account itself. Even if I get it to send from "diradmin", it will still be sent from [email protected] ... so I'll look at the exim config to see if there are any ways to exempt some users, like diradmin, then send the messages from diradmin instead.

[edit]
ok .. from what I can tell.. adding the username to the "trusted_users" option in exim gets rid of the "Sender" header using the hostname, but the "return-path" is still using the hostname. What I need you guys to do it add "admin" (or a test creator) to the trusted_users list in your exim.conf, restart exim, then make a test account. If your "on behalf of" message goes away, I'll make the change to use diradmin for sending, and add diradmin to the exim.conf .. else the "return-path" is doing the "on behalf of" and more investigating into exim would be required.

Let me know either way.

Thanks,

John
 
Note:

If the reseller is creating the accounts, add his username to the trusted_users list as well.

John
 
so does that fix the problem? I'll need to know in the next few days if it's to make it into the next relelase ;)

John
 
John,

I found this on another forum for another CP using another email server, but perhaps this code could be helpful in our situation.

Of course I could be completely offbase, but if it's wrong or unhelpful (I don't have time to check) we can always delete it.
Code:
Below is an example of a mail call that will send an email with the return-path set to whatever email you decide:

mail("[email protected]", "Test PHP Mail", "Mail From PHP", "From: [email][email protected][/email]", "[email protected]");

This will set both the "From" and the "Return-Path" addresses.

Jeff
 
It works, admin sends as admin not diradmin and I think all resellers need to have option to be added or added auto in some way then it would be good.
 
Hello,

Ok, good to hear it works.. note that what I had you do was just a test to see if that fixed the "on behalf of" issue. I'll change DA to send emails from diradmin instead of the user, then you'll only have to add "diradmin" to the trusted list. I might add an X-header with the actual username for DA mails just so that spammers don't start using the welcome messages anonymously as "diradmin" ;)

Jeff: thanks for the post.. but the issue was exim not trusting the sending user, so it was changing the actual Sender header on us. (DA already sets the reply-to and from headers)

John
 
If it is set to diradmin wont it not send reseller's emails with the reseller address?
 
Hello,

it's not sent to diradmin...it's sent from diradmin, who will be a trusted exim user, which allows the from/sender address to not be overwritten by exim. It will send from whatever email the reseller has setup in his DA settings.

John
 
DirectAdmin Support said:
Hello,

it's not sent to diradmin...it's sent from diradmin, who will be a trusted exim user, which allows the from/sender address to not be overwritten by exim. It will send from whatever email the reseller has setup in his DA settings.

John

Ok, might have an issue here. Runniing Fedora Core2 (If that makes any difference)

2005-03-19 07:37:42 1DCdD4-0000sp-Du ** [email protected] F=<[email protected]>: Unrouteable address

mail is set to go TO [email protected] - but it's not arriving, just staying in the local diradmin account in /var/spool/mail ...

Welcome emails are also not being sent to the new users.

I'm not sure which upgrade this is a bug OF, or if it's a bug at all.. but it's definately an issue for us right now.

Any ideas?
 
I have had a unrouteable error as well since the upgrade, I did ignore it tho but after seeing this post checked the mx lookup and it was valid. So something did break.

--edit--

resent welcome email no error, turns out the routing error was a different email so I think working here.
 
Last edited:
I know it's been a while, but I's like to add myself to this question: where is the [email protected] configured?

Because my serverdomain is a non existing one. I mean: myserver.hostingcompanywhereirentmyserver.ext. Of course I use 'real' domainnames for my websites, mail, etc. But since the hostname for the server is that one above, DA also sends mail (like the welcome mail) from the address [email protected].

Result: some SMTP server check if that originating domain exist/has a mail server and that return the error: 550 Sender verify failed.

So I really need to be able to change the sender's address of DA, because my users (some of them) cannot receive emails from DA now.
 
Back
Top