email from user_a@example11.com shows as from user_a.example11@example01.com

1 post / 0 new
#1 Mon, 04/21/2014 - 16:02
sfbob

email from user_a@example11.com shows as from user_a.example11@example01.com

Note: Per https://www.virtualmin.com/documentation/email/troubleshooting this is not a new problem

Domains used in documentation below

  • example01.com - domain name of machine1 in Networking > Network Configuration
  • example02.com - domain hosted on machine1.example01.com above, often used for logging into webmin for maintenance
  • example11.com - domain hosted on machine1.example01.com for sender's email
  • example12.com - domain hosted on machine1.example01.com for email's recipient

Environment

  • Server OS: CentOS 5.10
  • VirtualMin: 4.06 GPL
  • PostFix: 2.3.3
  • Servername machine1.example01.com hosts multiple domains and email for those domains. Server has static IPv4 address, directly connected to internet

Problem:

email sent

from user_a@example11.com hosted on machine1.example01.com

to user_b@example12.com (for test purposes also on machine1.example01.com

shows in recipient's mailbox as being sent from user_a.example11@example01.com (completely different domain)

this is consistent whether recipient is using Squirrelmail on host machine1.example01.com or a free email account from a provider whose name begins with Y and ends in !

Configuration Settings

Per https://www.virtualmin.com/node/8415, configurations

And https://www.virtualmin.com/documentation/email/troubleshooting

Path: Webmin > Usermin Configuation > Usermin Module Configuration > Read Mail

Section: User From addresses

Option: From: address Mapping File set to "/etc/postfix/virtual"

Option: Address mapping file format set to "Address to username(virtusertable)"

Per: https://www.virtualmin.com/node/17716

file /etc/postfix/virtual is world readable

Per: https://www.virtualmin.com/node/32318

Webmin: Networking > Network Configuration

Option: Hostname and DNS Client

hostname is some_name_not_in_dns.example01.com, name is NOT registered in example01.com's DNS records

Additional actions taken

In Squirrlemail

Path: Options > Personal Information > Edit Advanced Identities

email address shows as user_a.example11@example02.com (another domain on machine1.example01.com )

Note: for domain example11.com squirrelmail was probably setup when logged into root at

https://example02.com:10000

PARTIAL FIX

Uninstalled Squirrelmail and reinstalled logged into root at

https://example11.com:10000

Logged into http://example11.com/squirrelmail/ as user_a.example11

Options > Personal Information > Edit Advanced Identities

show E-Mail Address as "user_a.example11@example11.com"

(some progress at least, mail is now coming from correct domain, username is still not in desired format)

Also, stopped and started Postfix, results did not change

What have I missed?