Jump to content

postfix: send mail as user@localhost.example.com?


shams
 Share

Recommended Posts

hi,

i run mandriva 2007 with apche, postfix, dovecot and squirrelmail for my mail server, i change my hostname to example.com, but when send the mail from my local smtp server, postfix send as:

user@localhost.example.com

that sould be user@example.com, these are some of my configuration files:

/etc/posfix/main.cf:

# User configurable parameters

mydomain = example.com

myhostname = example.com

inet_interfaces = all

mynetworks_style = host

#delay_warning_time = 4h

 

/etc/postfix/main.cf.dist:

myhostname = example.com

mydomain = ecample.com

myorigin = $mydomain

inet_interfaces = all

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

relay_domains = $mydestination

 

/etc/httpd/conf/httpd.conf:

ServerAdmin root@localhost

ServerName example.com:80

 

/etc/hosts:

127.0.0.1 exmaple.com localhost

202.102.185.56 example.com example.com

 

my serve is not always online so i need the first line in /etc/hosts to start the local web server offline.

any one can help please?

Edited by shams
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...