Can't receive mail on my server but can send just fine.From what I can tell in the logs, it complains about timing out. I check the connection externally using telnet from my PC, I can connect to port 25 fine.It also talks about failing to do something with mysql, so I extended the time-out limits slightly and checked to make sure I could connect using myphpadmin. everything seems peachy from that aspect, so I don't know why it's complaining there.With the help of @roaima it now bounces messages, but it claims that loops back to myself.If you look at the my.cnf of postfix, you can see that I've tried many different orientations of mydestination, some say it loops back, other say it's not a relay host.After researching the error I'm having, it claims that either removing or adding my FQDN fixes it, however in both cases I've met with no success.I'm alright at using Linux but postfix escapes me.Log of: /var/log/mail.logApr 22 15:26:37 webserver postfix/smtpd[36202]: connect from mail-wi0-f172.google.com[209.85.212.172]Apr 22 15:26:38 webserver postfix/trivial-rewrite[36209]: warning: do not list domain zomgaming.net in BOTH mydestination and virtual_mailbox_domainsApr 22 15:26:38 webserver postfix/smtpd[36202]: 20547C0E08: client=mail-wi0-f172.google.com[209.85.212.172]Apr 22 15:26:38 webserver postfix/cleanup[36212]: 20547C0E08: message-id=<CAF++Fz1DrsMktsZ4k=FMRtjwfHP3mfPbVL2QoXxemqX_M69wkQ@mail.gmail.com>Apr 22 15:26:38 webserver postfix/qmgr[36200]: 20547C0E08: from=<deathmock@gmail.com>, size=1677, nrcpt=1 (queue active)Apr 22 15:26:38 webserver amavis[50731]: (50731-11) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 136) line 170, <GEN31> line 770.Apr 22 15:26:38 webserver postfix/smtpd[36202]: disconnect from mail-wi0-f172.google.com[209.85.212.172]Apr 22 15:26:41 webserver postfix/smtpd[36216]: connect from localhost[127.0.0.1]Apr 22 15:26:41 webserver postfix/smtpd[36216]: 7FBF9C0E3B: client=localhost[127.0.0.1]Apr 22 15:26:41 webserver postfix/cleanup[36212]: 7FBF9C0E3B: message-id=<CAF++Fz1DrsMktsZ4k=FMRtjwfHP3mfPbVL2QoXxemqX_M69wkQ@mail.gmail.com>Apr 22 15:26:41 webserver postfix/qmgr[36200]: 7FBF9C0E3B: from=<deathmock@gmail.com>, size=2151, nrcpt=1 (queue active)Apr 22 15:26:41 webserver postfix/smtpd[36216]: disconnect from localhost[127.0.0.1]Apr 22 15:26:41 webserver amavis[50731]: (50731-11) Passed CLEAN {RelayedOpenRelay}, [209.85.212.172]:36328 [209.85.212.172] <deathmock@gmail.com> -> <admin@zomgaming.net>, Queue-ID: 20547C0E08, Message-ID: <CAF++Fz1DrsMktsZ4k=FMRtjwfH$Apr 22 15:26:41 webserver postfix/smtp[36213]: 20547C0E08: to=<admin@zomgaming.net>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.5, delays=0.25/0.01/0.01/3.2, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 $Apr 22 15:26:41 webserver postfix/qmgr[36200]: 20547C0E08: removedApr 22 15:26:41 webserver postfix/smtp[36217]: 7FBF9C0E3B: to=<admin@zomgaming.net>, relay=none, delay=0.28, delays=0.02/0.04/0.23/0, dsn=5.4.6, status=bounced (mail for mail.zomgaming.net loops back to myself)Apr 22 15:26:41 webserver postfix/cleanup[36212]: C7091C16D3: message-id=<20150422152641.C7091C16D3@webserver.zomgaming.com>Apr 22 15:26:41 webserver postfix/qmgr[36200]: C7091C16D3: from=<>, size=4101, nrcpt=1 (queue active)Apr 22 15:26:41 webserver postfix/bounce[36218]: 7FBF9C0E3B: sender non-delivery notification: C7091C16D3Apr 22 15:26:41 webserver postfix/qmgr[36200]: 7FBF9C0E3B: removedApr 22 15:26:42 webserver postfix/smtp[36217]: connect to gmail-smtp-in.l.google.com[2607:f8b0:400d:c06::1b]:25: Network is unreachableApr 22 15:26:43 webserver postfix/smtp[36217]: C7091C16D3: to=<deathmock@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.22.27]:25, delay=1.5, delays=0.01/0.01/0.62/0.85, dsn=2.0.0, status=sent (250 2.0.0 OK 1429716403 gn1si5368338$Apr 22 15:26:43 webserver postfix/qmgr[36200]: C7091C16D3: removedApr 22 15:29:58 webserver postfix/anvil[36205]: statistics: max connection rate 1/60s for (smtp:209.85.212.172) at Apr 22 15:26:37Apr 22 15:29:58 webserver postfix/anvil[36205]: statistics: max connection count 1 for (smtp:209.85.212.172) at Apr 22 15:26:37Apr 22 15:29:58 webserver postfix/anvil[36205]: statistics: max message rate 1/60s for (smtp:209.85.212.172) at Apr 22 15:26:38Apr 22 15:29:58 webserver postfix/anvil[36205]: statistics: max cache size 1 at Apr 22 15:26:37Apr 22 15:30:02 webserver postfix/smtpd[36282]: connect from localhost[127.0.0.1]Apr 22 15:30:02 webserver dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<zbw01lEUXgB/AAAB>Apr 22 15:30:02 webserver dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<kQk11lEUFAB/AAAB>Apr 22 15:30:02 webserver postfix/smtpd[36282]: lost connection after CONNECT from localhost[127.0.0.1]Apr 22 15:30:02 webserver postfix/smtpd[36282]: disconnect from localhost[127.0.0.1]Output of: dig mx zomgaming.net; <<>> DiG 9.9.5-3ubuntu0.2-Ubuntu <<>> mx zomgaming.net;; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44151;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1;; OPT PSEUDOSECTION:; EDNS: version: 0, flags:; udp: 512;; QUESTION SECTION:;zomgaming.net.                 IN      MX;; ANSWER SECTION:zomgaming.net.          3599    IN      MX      1 zomgaming.net.;; Query time: 66 msec;; SERVER: 8.8.8.8#53(8.8.8.8);; WHEN: Mon Apr 13 10:34:04 UTC 2015;; MSG SIZE  rcvd: 58My mx records on godaddy:MX 1 zomgamgin.net.MX 5 mail.zomgaming.net.Output of: /etc/hosts127.0.0.1 localhost#192.168.1.204  webserver.zomgaming.com webserver192.168.1.204   zomgaming.net#192.168.1.204  mail.zomgaming.net73.172.71.230   webserver.zomgaming.com webserver#73.172.71.230  zomgaming.net127.0.0.1       mail.zomgaming.netOutput of /etc/postfix/main.cf:# See /usr/share/postfix/main.cf.dist for a commented, more complete version# Debian specific:  Specifying a file name will cause the first# line of that file to be used as the name.  The Debian default# is /etc/mailname.#myorigin = /etc/mailnamesmtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)biff = no# appending .domain is the MUA's job.append_dot_mydomain = no# Uncomment the next line to generate delayed mail warnings#delay_warning_time = 4hreadme_directory = /usr/share/doc/postfix# TLS parameterssmtpd_tls_cert_file = /etc/postfix/smtpd.certsmtpd_tls_key_file = /etc/postfix/smtpd.keysmtpd_use_tls = yessmtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scachesmtp_tls_session_cache_database = btree:${data_directory}/smtp_scache# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for# information on enabling SSL in the smtp client.smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destinationmyhostname = webserver.zomgaming.commydomain = zomgaming.netalias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliasesalias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliasesmyorigin = /etc/mailname#mydestination = webserver.zomgaming.com, localhost, localhost.localdomain#mydestination = $myhostname localhost.$mydomain localhost $mydomain mail.$mydomain#mydestination = webserver.zomgaming.com localhost.webserver.zomgaming.com localhost zomgaming.net mail.zomgaming.net#mydestination = $mydomain, localhost.localdomain, localhost#mydestination = $myhostname, localhost, localhost.localdomainmydestination = webserver.zomgaming.com zomgaming.net#relayhost =mynetworks = 127.0.0.0/8 [::1]/128 192.168.1.0/24mailbox_size_limit = 0recipient_delimiter = +inet_interfaces = allinet_protocols = allhtml_directory = /usr/share/doc/postfix/html#virtual_alias_domains =virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cfvirtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cfvirtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cfvirtual_mailbox_base = /var/vmailvirtual_uid_maps = static:5000virtual_gid_maps = static:5000smtpd_sasl_auth_enable = yesbroken_sasl_auth_clients = yessmtpd_sasl_authenticated_header = yessmtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cfsmtpd_tls_security_level = maytransport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cfrelay_domains =relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cfproxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_can$smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cfsmtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cfsmtpd_client_message_rate_limit = 100maildrop_destination_concurrency_limit = 1maildrop_destination_recipient_limit = 1virtual_transport = dovecotheader_checks = regexp:/etc/postfix/header_checksmime_header_checks = regexp:/etc/postfix/mime_header_checksnested_header_checks = regexp:/etc/postfix/nested_header_checksbody_checks = regexp:/etc/postfix/body_checksowner_request_special = nosmtp_tls_security_level = maysmtpd_tls_mandatory_protocols = !SSLv2, !SSLv3smtpd_tls_protocols = !SSLv2,!SSLv3smtp_tls_protocols = !SSLv2,!SSLv3dovecot_destination_recipient_limit = 1smtpd_sasl_type = dovecotsmtpd_sasl_path = private/authcontent_filter = amavis:[127.0.0.1]:10024receive_override_options = no_address_mappingsmessage_size_limit = 0smtp_host_lookup = nativeOutput of /etc/postfix/master.cf:## Postfix master process configuration file.  For details on the format# of the file, see the master(5) manual page (command: man 5 master or# on-line: http://www.postfix.org/master.5.html).## Do not forget to execute postfix reload after editing this file.## ==========================================================================# service type  private unpriv  chroot  wakeup  maxproc command + args#               (yes)   (yes)   (yes)   (never) (100)# ==========================================================================smtp      inet  n       -       -       -       -       smtpd#smtp      inet  n       -       -       -       1       postscreen#smtpd     pass  -       -       -       -       -       smtpd#dnsblog   unix  -       -       -       -       0       dnsblog#tlsproxy  unix  -       -       -       -       0       tlsproxysubmission inet n       -       -       -       -       smtpd  -o syslog_name=postfix/submission  -o smtpd_tls_security_level=encrypt  -o smtpd_client_restrictions=permit_sasl_authenticated,reject  -o smtpd_sasl_auth_enable=yes#  -o smtpd_reject_unlisted_recipient=no#  -o smtpd_client_restrictions=$mua_client_restrictions#  -o smtpd_helo_restrictions=$mua_helo_restrictions#  -o smtpd_sender_restrictions=$mua_sender_restrictions#  -o smtpd_recipient_restrictions=#  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject#  -o milter_macro_daemon_name=ORIGINATINGsmtps     inet  n       -       -       -       -       smtpd  -o syslog_name=postfix/smtps  -o smtpd_tls_wrappermode=yes  -o smtpd_sasl_auth_enable=yes  -o smtpd_client_restrictions=permit_sasl_authenticated,reject#  -o smtpd_reject_unlisted_recipient=no#  -o smtpd_client_restrictions=$mua_client_restrictions#  -o smtpd_helo_restrictions=$mua_helo_restrictions#  -o smtpd_sender_restrictions=$mua_sender_restrictions#  -o smtpd_recipient_restrictions=#  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject#  -o milter_macro_daemon_name=ORIGINATING#628       inet  n       -       -       -       -       qmqpdpickup    unix  n       -       -       60      1       pickupcleanup   unix  n       -       -       -       0       cleanupqmgr      unix  n       -       n       300     1       qmgr#qmgr     unix  n       -       n       300     1       oqmgrtlsmgr    unix  -       -       -       1000?   1       tlsmgrrewrite   unix  -       -       -       -       -       trivial-rewritebounce    unix  -       -       -       -       0       bouncedefer     unix  -       -       -       -       0       bouncetrace     unix  -       -       -       -       0       bounceverify    unix  -       -       -       -       1       verifyflush     unix  n       -       -       1000?   0       flushproxymap  unix  -       -       n       -       -       proxymapproxywrite unix -       -       n       -       1       proxymapsmtp      unix  -       -       -       -       -       smtprelay     unix  -       -       -       -       -       smtp#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5showq     unix  n       -       -       -       -       showqerror     unix  -       -       -       -       -       errorretry     unix  -       -       -       -       -       errordiscard   unix  -       -       -       -       -       discardlocal     unix  -       n       n       -       -       localdiscard   unix  -       -       -       -       -       discardlocal     unix  -       n       n       -       -       localvirtual   unix  -       n       n       -       -       virtuallmtp      unix  -       -       -       -       -       lmtpanvil     unix  -       -       -       -       1       anvilscache    unix  -       -       -       -       1       scache## ====================================================================# Interfaces to non-Postfix software. Be sure to examine the manual# pages of the non-Postfix software to find out what options it wants.## Many of the following services use the Postfix pipe(8) delivery# agent.  See the pipe(8) man page for information about ${recipient}# and other message envelope options.# ====================================================================## maildrop. See the Postfix MAILDROP_README file for details.# Also specify in main.cf: maildrop_destination_recipient_limit=1#maildrop  unix  -       n       n       -       -       pipe  flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}## ====================================================================## Recent Cyrus versions can use the existing lmtp master.cf entry.## Specify in cyrus.conf:#   lmtp    cmd=lmtpd -a listen=localhost:lmtp proto=tcp4## Specify in main.cf one or more of the following:#  mailbox_transport = lmtp:inet:localhost#  virtual_transport = lmtp:inet:localhost## ====================================================================## Cyrus 2.1.5 (Amos Gouaux)# Also specify in main.cf: cyrus_destination_recipient_limit=1##cyrus     unix  -       n       n       -       -       pipe#  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}## ====================================================================# Old example of delivery via Cyrus.##old-cyrus unix  -       n       n       -       -       pipe#  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}## ====================================================================## See the Postfix UUCP_README file for configuration details.#uucp      unix  -       n       n       -       -       pipe  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)## Other external delivery methods.#ifmail    unix  -       n       n       -       -       pipe  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)bsmtp     unix  -       n       n       -       -       pipe  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipientscalemail-backend unix  -       n       n       -       2       pipe  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}scalemail-backend unix  -       n       n       -       2       pipeflags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}mailman   unix  -       n       n       -       -       pipe  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py  ${nexthop} ${user}dovecot   unix  -       n       n       -       -       pipe  flags=DROhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}amavis unix - - - - 2 smtp        -o smtp_data_done_timeout=1200        -o smtp_send_xforward_command=yes127.0.0.1:10025 inet n - - - - smtpd        -o content_filter=        -o local_recipient_maps=        -o relay_recipient_maps=        -o smtpd_restriction_classes=        -o smtpd_client_restrictions=        -o smtpd_helo_restrictions=        -o smtpd_sender_restrictions=        -o smtpd_recipient_restrictions=permit_mynetworks,reject        -o mynetworks=127.0.0.0/8        -o strict_rfc821_envelopes=yes        -o receive_override_options=no_unknown_recipient_checks,no_header_body_checksOutput of hostname:webserver.zomgaming.comOutput of hostname -f:webserver.zomgaming.comConnection from an outside source:220 webserver.zomgaming.com ESMTP Postfix (Ubuntu)>ehlo zomgaming.net250-webserver.zomgaming.com250-PIPELINING250-SIZE250-VRFY250-ETRN250-STARTTLS250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES250-8BITMIME250 DSN>mail from:<deathmock@gmail.com>501 5.5.4 Syntax: MAIL FROM:<address>>mail from:<steve@example.com>250 2.1.0 Ok>rcpt to:<admin@zomgaming.net>502 5.5.2 Error: command not recognized>mail to:<admin@zomgaming.net>503 5.5.1 Error: nested MAIL command>rcpt to:<admin@zomgaming.net>250 2.1.5 Ok>data354 End data with <CR><LF>.<CR><LF>>this is a test>.250 2.0.0 Ok: queued as 648FFC128A>quitlog:Apr 13 09:17:28 webserver postfix/qmgr[31156]: 648FFC128A: from=<steve@example.com>, size=329, nrcpt=1 (queue active)Apr 13 09:17:43 webserver postfix/smtpd[34632]: connect from localhost[127.0.0.1]Apr 13 09:17:43 webserver postfix/smtpd[34632]: 950C9C39CC: client=localhost[127.0.0.1]Apr 13 09:17:43 webserver postfix/cleanup[34617]: 950C9C39CC: message-id=<20150413091743.950C9C39CC@webserver.zomgaming.com>Apr 13 09:17:43 webserver postfix/qmgr[31156]: 950C9C39CC: from=<steve@example.com>, size=1013, nrcpt=1 (queue active)Apr 13 09:17:43 webserver postfix/smtpd[34632]: disconnect from localhost[127.0.0.1]Apr 13 09:17:43 webserver amavis[1254]: (01254-18) Passed BAD-HEADER-7 {RelayedOpenRelay,Quarantined}, [24.210.201.75]:12825 [24.210.201.75] <steve@exam$Apr 13 09:17:43 webserver postfix/smtp[34629]: 648FFC128A: to=<admin@zomgaming.net>, relay=127.0.0.1[127.0.0.1]:10024, delay=165, delays=150/0.01/0.01/1$Apr 13 09:17:43 webserver postfix/qmgr[31156]: 648FFC128A: removedApr 13 09:17:57 webserver postfix/smtpd[34531]: disconnect from cpe-24-210-201-75.neo.res.rr.com[24.210.201.75]Apr 13 09:18:54 webserver postfix/smtp[34633]: connect to zomgaming.net[73.172.71.230]:25: Connection timed outApr 13 09:18:54 webserver postfix/smtp[34633]: 950C9C39CC: to=<admin@zomgaming.net>, relay=none, delay=70, delays=0.02/0.04/70/0, dsn=4.4.1, status=deferred (connect to zomgaming.net[73.172.71.230]:25: Connection timed out)Ok so I'll try to connect to myself internally.root@webserver:/home/admin# telnet zomgaming.net 25Trying 127.0.0.1...Connected to mail.zomgaming.net.Escape character is '^]'.220 webserver.zomgaming.com ESMTP Postfix (Ubuntu)Output of /etc/nsswitch.conf:# /etc/nsswitch.conf## Example configuration of GNU Name Service Switch functionality.# If you have the `glibc-doc-reference' and `info' packages installed, try:# `info libc Name Service Switch' for information about this file.passwd:         compatgroup:          compatshadow:         compathosts:          files dnsnetworks:       filesprotocols:      db filesservices:       db filesethers:         db filesrpc:            db filesnetgroup:       nis
Problems with postfix/dovecot unable to receive mail
ubuntu;email;postfix;dovecot