I have been trying to figure out how to get Postfix to not append
"localhost" in to the From: field. I am sending email mostly between
two local users, using RHEL5/Squirrelmail/Postfix/Dovecot.

When I send an email from

  user_...@schoolretail.local

to

  user_...@schoolretail.local

it arrives from

  user_...@localhost.schoolretail.local

I am also relaying mail to another box that expects the mail to not
have "localhost" appended to the domain name. Users of the other
(Windows) box need to see the address without "localhost" prepended.

I had a very similar system working with Ubuntu, and I solved this
problem by setting myorigin to a file that contained my domain name
(schoolretail.local), but that doesn't seem to work on the RHEL5
system.

Sorry if this is not a Postfix question!  I just thought "myorigin"
should set the From address. I must be missing something!


[r...@schoolmail ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $mydomain, $myhostname, localhost.$mydomain
mydomain = schoolretail.local
myhostname = schoolmail.schoolretail.local
mynetworks = 127.0.0.0/8
myorigin = schoolretail.local
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relayhost = 192.168.1.16
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

Reply via email to