Control over senders domain name

This is a discussion on Control over senders domain name within the Linux Networking forums, part of the Linux Forums category; Hi all Early days for me and linux email so please bare with me.... I've inherited two servers, one ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2006
Stevie
 
Posts: n/a
Default Control over senders domain name

Hi all

Early days for me and linux email so please bare with me....

I've inherited two servers, one running sendmail, one running postfix.

I want to control the domain name that is appended to the senders name
when sending email via sendmail/postfix from the command line. This
will allow me more control over how these emails are filtered by a spam
and email signature engine.

Using the command
echo "test body" | mail -s "Test email" me@mydomain.com

two different sender email addresses are visible in the received email.
On the sendmail server the senders name appears in my inbox as
root@servername.local whereas on the postfix server the senders name
appears as root@servername.mydomain.com.

I'd like to standardise and have servername.mydomain.com replaced by
servername.local.

Could anyone point me in the right direction? Is this something
controlled by the postfix/sendmail config or is it within the network
config itself?

Also, how does the mail command know to use sendmail or postfix? In the
medium term I'd like to install postfix on the sendmail box as I've
heard it's simpler to configure. Is there a way for these two packages
to co-exist so the transfer to postfix can be as risk free as possible?

Many thanks
StevieH

Reply With Quote
  #2 (permalink)  
Old 04-18-2006
Stevie
 
Posts: n/a
Default Re: Control over senders domain name

Davide

Thanks. "Rewrite" was the key word I was looking for, move along now.

The sendmail info was most useful. It appears that the issue I was
having with .local was due to differences in /etc/hosts, rather than
differences in the postfix/sendmail rewrite config.

This is easily visible using the hostname -v -f command.

StevieH

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 01:53 AM.


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