I am trying to setup a mailserver on a machine that will host more virtual domains. As a consequence I want to setup Postfix to use virtual domains and virtual users.
The server receives emails and sends them to the right mailbox, and I also can get my mails using dovecot as a pop3 server.
But, I have a problem:
When I want to send an email using a client (Thunderbird) from email@example.com
, I get an error:
554 <firstname.lastname@example.org> Relay access denied
My configuration is:
myhostname = localhost
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, ftp.$mydomain
relay_recipient_maps = hash:/etc/postfix/relay_recipients
virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_base = /var/spool/vmail
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:504
virtual_gid_maps = static:504
virtual_alias_maps = hash:/etc/postfix/virtual
The other options are missing or default. (I replaced the domain name with thedomain.com)
Please help, any help or suggestion will be appreciated as I worked on this for a week.