I just started playing with Postfix.
Trying to set it as destination for main domain (domain1.com), a few virtual hosts (domain2.com, domain3.com) and relaying mail for existing (domain3.com) and one more virtual domain (domain4.com).
Receiving mail for virtual accounts works OK, as well as forwarding for the last one.
The only problem is getting mail for local user(s). There is no bouncing, no error or any other related messages in maillog, yet I can't find the mail anywhere on the system.
The machine is directly connected to internet, with sendmail disabled and no firewall for this purpose.
Here is the output of the files:
#postconf -n :
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_privs = nobody
home_mailbox = Maildir/
inet_interfaces = all
local_recipient_maps =
local_transport = local
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain
mydomain = domain1.com
myhostname = domain1.com
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.0.18/README_FILES
relay_domains = $mydomain
sample_directory = /usr/share/doc/postfix-2.0.18/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
virtual_alias_domains = domain4.com
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:1000
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_domains = domain2.com domain3.com
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = hash:/etc/postfix/virtual_uids
#/etc/postfix/canonical:
dnsmaster dnsmaster@domain1.com
#/etc/postfix/virtual:
info@domain2.com info@externaldomain.com
info@domain4.com somewhere@external2.com
info@domain3.com again@external3.com
#/etc/postfix/vmailbox
marketing@domain2.com domain2.com/marketing/
#/etc/postfix/virtual_uids
marketing@domain2.com 1000
domain2.com 1000
All corresponding db's made with postmap.
Nothing in /home/dnsmaster/Maildir/new ../tmp ../cur
Nothing in /var/mail/dnsmaster
No mention of any activity toward dnsmaster@domain1.com in /var/log/maillog, although all other messages logged correctly.
So, after a full day of searching on the internet and sending tens, if not hundreds of messages to dnsmaster@domain1.com, this is my last resort.
What have I done wrong?
Trying to set it as destination for main domain (domain1.com), a few virtual hosts (domain2.com, domain3.com) and relaying mail for existing (domain3.com) and one more virtual domain (domain4.com).
Receiving mail for virtual accounts works OK, as well as forwarding for the last one.
The only problem is getting mail for local user(s). There is no bouncing, no error or any other related messages in maillog, yet I can't find the mail anywhere on the system.
The machine is directly connected to internet, with sendmail disabled and no firewall for this purpose.
Here is the output of the files:
#postconf -n :
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_privs = nobody
home_mailbox = Maildir/
inet_interfaces = all
local_recipient_maps =
local_transport = local
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain
mydomain = domain1.com
myhostname = domain1.com
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.0.18/README_FILES
relay_domains = $mydomain
sample_directory = /usr/share/doc/postfix-2.0.18/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
virtual_alias_domains = domain4.com
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:1000
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_domains = domain2.com domain3.com
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = hash:/etc/postfix/virtual_uids
#/etc/postfix/canonical:
dnsmaster dnsmaster@domain1.com
#/etc/postfix/virtual:
info@domain2.com info@externaldomain.com
info@domain4.com somewhere@external2.com
info@domain3.com again@external3.com
#/etc/postfix/vmailbox
marketing@domain2.com domain2.com/marketing/
#/etc/postfix/virtual_uids
marketing@domain2.com 1000
domain2.com 1000
All corresponding db's made with postmap.
Nothing in /home/dnsmaster/Maildir/new ../tmp ../cur
Nothing in /var/mail/dnsmaster
No mention of any activity toward dnsmaster@domain1.com in /var/log/maillog, although all other messages logged correctly.
So, after a full day of searching on the internet and sending tens, if not hundreds of messages to dnsmaster@domain1.com, this is my last resort.
What have I done wrong?