I have 5 domain names currently pointing to my email server, which is running CentOS 6.5 with Postfix, Dovecot installed. Although I am now only able to receive emails but not send (for reasons I can't understand) I am having trouble configuring this part of the main.cf
as there seems to be a place for only one domain name and host to be specified.
# The default_privs parameter specifies the default rights used by
# the local delivery agent for delivery to external file or command.
# These rights are used in the absence of a recipient user context.
# DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
#
#default_privs = nobody
# INTERNET HOST AND DOMAIN NAMES
#
# The myhostname parameter specifies the internet hostname of this
# mail system. The default is to use the fully-qualified domain name
# from gethostname(). $myhostname is used as a default value for many
# other configuration parameters.
#
myhostname = mail.domain1.tld
#myhostname = virtual.domain.tld
# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
#
mydomain = mail.domain1.tld
Here I am forced to mention mail.domain1.tld
while in fact, I have 4 other domains. And the second confusing thing is that, since domain.tld
is pointing to another web host VPS, I am only pointing mail.domain1.tld
to this email host. So, I am sure mydomain = domain1.tld
would make no sense.
So, I guess my point is, what value do I give to this attribute, it I am hosting emails for more than one domain?