want to setup users always use their own domainname sending emails

frankbeen

New member
Joined
Dec 5, 2014
Messages
2
Hello everyone,

I have DA build 1.2 on a Centos 6.3 OS.
For example the servername is server.mydomain.com and one of the users have a domain called userdomain.com

1)All the users that send email from PHP scripts (using the PHP mail() function) have the problem that the receiver of the email gets an senders adress like [email protected]. I wish this to change to the user domain for example [email protected].

2) Users that sends email from roundcube have username@localhost as sender by default. It is easy to change for the user but i like to have it automaticly setup to [email protected].

Any help would be great.

Thanks in advance,

Frank.
 
1.) Edit /etc/exim.conf find this line:
Code:
#.include_if_exists /etc/exim.clamav.load.conf

Put above it these lines:
Code:
untrusted_set_sender = *
no_local_from_check
Save the file and restart exim.

2.) Maybe that's fixed too then.
 
2) Users that sends email from roundcube have username@localhost as sender by default. It is easy to change for the user but i like to have it automaticly setup to [email protected].

That because of "localhost" is used as a default domain in roundcube settings. You could try to change:

Code:
$config['default_host'] = 'localhost';

to

Code:
$config['default_host'] = '%d';

after you modify its config make sure to protect it from being overwritten using this guide: http://help.directadmin.com/item.php?id=365
 
Back
Top