Ticket System Email from/reply address setting

wanos

Verified User
Joined
Aug 5, 2004
Messages
16
Hi All,

I am trying to change the from/reply address for the system generated emails & for the life of me I can't find where that is set.
Specifically, when auto-generated emails get sent to the ticket system & to the admins the reply to address is what I want to change.

eg. Brute Force Attacks going to the admins & the ticket system or users over their limits etc ... all have a different address to one that I want.

I can change the name it comes from in the directadmin conf file but not the from/reply address.

Can anyone shed some light on where the from/reply address is set?
 
Hi zEitEr,

Thanks for the response but I think you are not understanding the issue or I am missing something.

I know where to change email address for tickets from users which is stored in the /usr/local/directadmin/admin/data/users/<username>/ticket.conf file. It is not getting this setting from the admin account as that has 2 different email addresses set in /usr/local/directadmin/admin/data/users/admin/ticket.conf

Let me provide a little more details.

My admin level account's email address received a message just recentyl with the following info
From : My Message System <[email protected]>
Subject : New Message: Brute-Force Attack detected in service log from IP(s) 62.90.181.1 on User(s) root
Reply-To: My Message System <[email protected]>


No one is sending a ticket as this is auto-generated. When people do send a ticket it does have the correct address associated with their ticket.
What I can change is the "My Message System" to anything that I want by editing the /usr/local/directadmin/conf/directadmin.conf file but I can't change the email address this is associated with messages that automagically generate a ticket.

Times that a ticket/message is generated can include:
users over quota
users over bandwidth
excessive login attempts/brute for attack

Hope that makes more sense...
 
DirectAdmin only sends emails from the reseller/admin from the address set for the reseller/admin account. So again you should open details of admin/reseller (every admin and reseller has its own user details) and modify email there.
 
Hi zEitEr,

Ok - checked all admin accounts.
That is not the email address my account is set to although the email address is set to that for another admin account which is not mine.

The only thing I can think of is that the admin's account that does have that email address could have been the one that made my admin account but that was a long time ago.

--- here is the full headers of a received email ----

Return-path: <[email protected]>
Envelope-to: [email protected]
Delivery-date: Sat, 28 Jul 2012 16:43:02 +1000
Received: from diradmin by <hostname>.<domain>.com with local (Exim 4.69)
(envelope-from <[email protected]>)
id 1Sv0ju-0000OL-12
for [email protected]; Sat, 28 Jul 2012 16:43:02 +1000
To: admin <[email protected]>
From: Dreadnought Message System <[email protected]>
Sender: Dreadnought Message System <[email protected]>
Reply-To: Dreadnought Message System <[email protected]>
X-DirectAdmin-Sender: diradmin
Subject: New Message: Brute-Force Attack detected in service log from IP(s) 62.90.181.1 on User(s) root
Message-Id: <[email protected]>
Date: Sat, 28 Jul 2012 16:43:02 +1000

--- end headers ---

This is an automated part of Directadmin and as such should not be dependant on a user account.

Are you saying that this must be coming from the admin account that has the same address?

It isn't my account so why would the headers have the administrator account for another user account as the reply to address?

Can I move the creator of my admin account to be another?
 
List Administrators -> select any, e.g. admin -> click "admin's User Data" -> Find text field "E-Mail"

that is the email from which any warnings from Directadmin are sent for his users (users of admin in my example). The same is with resellers. In your case you would see in that text field [email protected]

From: Dreadnought Message System <[email protected]>
Sender: Dreadnought Message System <[email protected]>
Reply-To: Dreadnought Message System <[email protected]>

Speaking about this email address [email protected]... it can not be change by any means... unless you are going to patch somehow exim, or code a wrapper for sendmail/exim.

And yes, you can change creator... if you have enough permissions to use "Move Users between Resellers".
 
Hello,

1) You can change the "name" of the sender, eg:
http://www.directadmin.com/features.php?id=568

2) For the actual "From" email of the notification, there are many checks/condidtions to determine the from email.
For any system messages, from DA, it will always be from the email of the creator of that account.
For admin, the creator is "root", so DA will fallback to admin's email.
The email value is set in:
/usr/local/directadmin/data/users/admin/user.conf

for admin.

If Reseller fred got a message from the system (eg, for overusage), and if admin created fred, then the From address would be set to admin's email.

Other cases can vary, depending on what is set where...

The email in the ticket.conf would only apply to where a User is emailed when a message system notification goes out.
The ticket.conf wouldn't affect the from value.

So zEiTer is correct.

John
 
Back
Top