Specifying different default user for mail from localhost

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 ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.exim

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-07-2007
thomasjbs@gmail.com
 
Posts: n/a
Default Specifying different default user for mail from localhost

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.

Reply With Quote
  #2 (permalink)  
Old 10-07-2007
René Berber
 
Posts: n/a
Default Re: Specifying different default user for mail from localhost

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

Reply With Quote
  #3 (permalink)  
Old 10-14-2007
Rob van der Putten
 
Posts: n/a
Default Re: Specifying different default user for mail from localhost

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:12 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0