I am using postfix to send out emails. Its working fine when I send email to other domains but it does not send email when I send emails to the same domain the post fix is configures with.
Below is my configuration:
myhostname = [FQDN]
virtual_alias_maps = hash:/etc/postfix/virtual
#home_mailbox = mail/
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#myorigin = /etc/mailname
#mydestination = mydomain1.com, mydomain2.com
#relayhost =
#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
Can anyone point me where misconfiguration is?
Postfix sends all log messages to /var/log/mail.
Of course, yes. A domain can have as many MX records (and thus, mail servers) as you wish. You can even set up priorities between them. For example, the MX records of the domain gmail.com are (you can get this a command host -t MX -v gmail.com ):
As an SMTP server, Postfix implements a first layer of defense against spambots and malware.
Add this blank line in your main.cf file.
mydestination =
Then reload your postfix configuration by running
/etc/init.d/postfix reload
I noticed you had tried to do something similar by commenting out the line defining mydestination, however, this will not fix your problem because mydestination defaults to $myhostname, localhost.$mydomain, localhost .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With