You are not logged in.
Hello,
I setup my mail sever following this wiki page:
https://wiki.archlinux.org/index.php/Si … ail_System
I can now send emails but not receive them. I have setup the MX records on godaddy.com and they point to the correct domain:
imap.mydomain.com
smpt.mydomain.com
But for some reason I am not receiving emails I send from gmail. What should I look at? I had this working with ubuntu server before but now I have no idea. Please help.
postconf -n
alias_database = $alias_maps
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/bin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
html_directory = no
inet_protocols = ipv4
local_recipient_maps = $virtual_mailbox_maps
local_transport = virtual
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydomain = mydomain.com
myhostname = mail.mydomain.com
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix
relay_domains = *
sample_directory = /etc/postfix/sample
sendmail_path = /usr/bin/sendmail
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/private/server.crt
smtpd_tls_key_file = /etc/ssl/private/server.key
smtpd_tls_loglevel = 1
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = proxy:mysql:/etc/postfix/virtual_alias_maps.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/virtual_domains_maps.cf
virtual_mailbox_limit = 512000000
virtual_mailbox_maps = proxy:mysql:/etc/postfix/virtual_mailbox_maps.cf
virtual_minimum_uid = 5000
virtual_transport = virtual
virtual_uid_maps = static:5000
Offline
You have MX records for imap.mydomain.com and smtp.mydomain.com
myhostname is set to mail.mydomain.com, though, but mydestination is undefined. So most likely your postfix doesn't feel responsible for the mails.
Try setting
mydestination = $myhostname localhost.$mydomain localhost imap.$mydomain smtp.$mydomain
PS: and this is really evil. Don't do that.
relay_domains = *
Last edited by teekay (2014-05-26 09:47:14)
Offline
Will give that a try. Thanks.
Oh, just noticed the relay_domains. OOps.
Offline
Did not fix it.
Offline
Is your mail server NATed behind a router/firewall?
If yes, is port 25 properly forwarded and is local DNS resolution configured correctly (either via mail server's /etc/hosts or the local DNS server)?
Can you telnet to it from outside?
What's in the logs?
Offline