This is a discussion on Specifying different default user for mail from localhost within the alt.comp.mail.exim forums, part of the Mail Servers and Related category; Anyone know how to change exim4 to specify a different "from" user for exim4? When I send mail ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Anyone know how to change exim4 to specify a different "from" user for
exim4? When I send mail from this server to various users using cron, they receive mail from: "root@host.mydomain.com" instead of: "thomas@mydomain.com". I played with the exim4-config_local_user file, but that didn't help. |
|
|||
|
On Oct 7, 1:07 pm, "thomasjbs" wrote:
> Anyone know how to change exim4 to specify a different "from" user for > exim4? > > When I send mail from this server to various users using cron, they > receive mail from: "root@host.mydomain.com" instead of: > "thomas@mydomain.com". > > I played with the exim4-config_local_user file, but that didn't help. It's not an exim function, there is no reverse-alias, but it is something you could control in cron. First choice: don't use root's crontab, use your own user's crontab. Other choices: the way you send emails might allow changing the "From:", for instance using email (email.cleancode.org) has a --from- name option, mailx (heirloom.sourceforge.net/mailx.html) has a -r option. The detail with the host name appearing instead of just the domain is something you can control in Exim's config and/or your /etc/hosts and / etc/resolv.conf, it probably is in the FAQ. -- René Berber |
|
|||
|
Hi there
thomasjbs@gmail.com wrote: > When I send mail from this server to various users using cron, they > receive mail from: "root@host.mydomain.com" instead of: > "thomas@mydomain.com". > > I played with the exim4-config_local_user file, but that didn't help. Have a look at primary_hostname and qualify_domain. Exim may also consult /etc/mailname The from is simply the process owner. Which is a sensible default. Regards, Rob -- Lifestyle sux |
![]() |
| Thread Tools | |
| Display Modes | |
|
|