I set up a new server with the perfect server guide. Ubuntu 12.04 dovecot bind apache2 ispconfig I am able to send but can't receive. I disabled clam and amvis. I tried finding the solution but can't figure it out. I know last time I set up this same type of server I had an issue similar to this. But I don't remember how I resolved it. This is the guide I followed: http://www.howtoforge.com/perfect-server-ubuntu-12.04-lts-apache2-bind-dovecot-ispconfig-3-p3 Here is my main.cf Code: # 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/mailname smtpd_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 = 4h readme_directory = /usr/share/doc/postfix # TLS parameters smtpd_tls_cert_file = /etc/postfix/smtpd.cert smtpd_tls_key_file = /etc/postfix/smtpd.key smtpd_use_tls = yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_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. myhostname = IceCodex.XXXXX.com alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases myorigin = /etc/mailname mydestination = $myhostname localhost.$mydomain $mydomain relayhost = mynetworks = 127.0.0.0/8 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all html_directory = /usr/share/doc/postfix/html virtual_alias_domains = virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:$ virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf virtual_mailbox_base = /var/vmail virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 inet_protocols = all smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_sasl_authenticated_header = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_rec$ smtpd_tls_security_level = may transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox$ smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf smtpd_client_message_rate_limit = 100 maildrop_destination_concurrency_limit = 1 maildrop_destination_recipient_limit = 1 virtual_transport = dovecot header_checks = regexp:/etc/postfix/header_checks mime_header_checks = regexp:/etc/postfix/mime_header_checks nested_header_checks = regexp:/etc/postfix/nested_header_checks body_checks = regexp:/etc/postfix/body_checks owner_request_special = no dovecot_destination_recipient_limit = 1 smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth #content_filter = amavis:[127.0.0.1]:10024 #receive_override_options = no_address_mappings I am forwarding emails with a catch all to my gmail. here is the error I get Code: This is the mail system at host IceCodex.XXXXXXXX.com. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system <[email protected]>: unknown user: "james" Final-Recipient: rfc822; [email protected] Original-Recipient: rfc822;[email protected] Action: failed Status: 5.1.1 Diagnostic-Code: X-Postfix; unknown user: "james" Not getting errors in the mail.error but here is the warning...The last line is suspicious. What is that domain? Code: Feb 19 06:35:01 IceCodex postfix/smtpd[6703]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman Feb 19 06:36:19 IceCodex postfix/qmgr[5913]: warning: connect to transport private/amavis: Connection refused Feb 19 06:37:19 IceCodex postfix/cleanup[6754]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman Feb 19 06:37:20 IceCodex postfix/cleanup[6761]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman Feb 19 06:37:20 IceCodex postfix/trivial-rewrite[6756]: warning: do not list domain insightgridcharger.com in BOTH mydestination and virtual_mailbox_domains Feb 19 06:40:01 IceCodex postfix/smtpd[6843]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman Feb 19 06:40:02 IceCodex postfix/cleanup[6873]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman Feb 19 06:44:24 IceCodex postfix/smtpd[6901]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman Feb 19 06:44:24 IceCodex postfix/smtpd[6901]: warning: hostname lx5.life813x5.com does not resolve to address 199.168.138.137: Name or service not known And finally my mail log Code: Feb 19 06:37:20 IceCodex postfix/pickup[5912]: 7691A20179: uid=110 from=<[email protected]> orig_id=34790244BA Feb 19 06:37:20 IceCodex postfix/cleanup[6754]: 7691A20179: message-id=<[email protected]> Feb 19 06:37:20 IceCodex postfix/local[6760]: 7548620932: to=<[email protected]>, orig_to=<www-data>, relay=local, delay=64039, delays=64039/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox) Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 7548620932: removed Feb 19 06:37:20 IceCodex postfix/pickup[5912]: 79B2E20932: uid=110 from=<[email protected]> orig_id=AE3CC20053 Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 7691A20179: from=<[email protected]>, size=1053, nrcpt=1 (queue active) Feb 19 06:37:20 IceCodex postfix/cleanup[6761]: 79B2E20932: message-id=<[email protected]> Feb 19 06:37:20 IceCodex postfix/local[6760]: 7691A20179: to=<[email protected]>, orig_to=<www-data>, relay=local, delay=79037, delays=79037/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox) Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 7691A20179: removed Feb 19 06:37:20 IceCodex postfix/pickup[5912]: 7E90D20053: uid=110 from=<[email protected]> orig_id=A2C122449A Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 79B2E20932: from=<[email protected]>, size=852, nrcpt=1 (queue active) Feb 19 06:37:20 IceCodex postfix/cleanup[6754]: 7E90D20053: message-id=<[email protected]> Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 7E90D20053: from=<[email protected]>, size=1053, nrcpt=1 (queue active) Feb 19 06:37:20 IceCodex postfix/local[6758]: 7243D208DC: to=<[email protected]>, relay=local, delay=58750, delays=58750/0/0/0.05, dsn=5.1.1, status=bounced (unknown user: "james") Feb 19 06:37:20 IceCodex postfix/pickup[5912]: 800C622DE7: uid=110 from=<[email protected]> orig_id=AB73A24463 Feb 19 06:37:20 IceCodex postfix/cleanup[6754]: 800C622DE7: message-id=<[email protected]> Feb 19 06:37:20 IceCodex postfix/cleanup[6761]: 7FEC520179: message-id=<[email protected]> Feb 19 06:37:20 IceCodex postfix/local[6760]: 79B2E20932: to=<[email protected]>, orig_to=<root>, relay=local, delay=86052, delays=86052/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox) Feb 19 06:37:20 IceCodex postfix/local[6758]: 7E90D20053: to=<[email protected]>, orig_to=<www-data>, relay=local, delay=94038, delays=94038/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox) Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 7E90D20053: removed Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 79B2E20932: removed Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 7FEC520179: from=<>, size=3943, nrcpt=1 (queue active) Feb 19 06:37:20 IceCodex postfix/pickup[5912]: 8244120053: uid=110 from=<[email protected]> orig_id=CA00B244A1 Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 800C622DE7: from=<[email protected]>, size=1053, nrcpt=1 (queue active) Feb 19 06:37:20 IceCodex postfix/bounce[6764]: 7243D208DC: sender non-delivery notification: 7FEC520179 Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 7243D208DC: removed Feb 19 06:37:20 IceCodex postfix/cleanup[6761]: 8244120053: message-id=<[email protected]> Feb 19 06:37:20 IceCodex postfix/local[6760]: 800C622DE7: to=<[email protected]>, orig_to=<www-data>, relay=local, delay=114438, delays=114438/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox) Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 8244120053: from=<[email protected]>, size=1053, nrcpt=1 (queue active) Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 800C622DE7: removed Feb 19 06:37:20 IceCodex postfix/pickup[5912]: 84C4A208DC: uid=110 from=<[email protected]> orig_id=EE3D62447E Feb 19 06:37:20 IceCodex postfix/cleanup[6754]: 84C4A208DC: message-id=<[email protected]> Feb 19 06:37:20 IceCodex postfix/local[6758]: 8244120053: to=<[email protected]>, orig_to=<www-data>, relay=local, delay=91039, delays=91039/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox) Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 8244120053: removed Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 84C4A208DC: from=<[email protected]>, size=1053, nrcpt=1 (queue active) Feb 19 06:37:20 IceCodex postfix/pickup[5912]: 85EB020053: uid=110 from=<[email protected]> orig_id=5320624484 Feb 19 06:37:20 IceCodex postfix/cleanup[6761]: 85EB020053: message-id=<[email protected]> Feb 19 06:37:20 IceCodex postfix/local[6760]: 84C4A208DC: to=<[email protected]>, orig_to=<www-data>, relay=local, delay=108439, delays=108439/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox) Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 84C4A208DC: removed Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 85EB020053: from=<[email protected]>, size=1053, nrcpt=1 (queue active) Feb 19 06:37:20 IceCodex postfix/pickup[5912]: 8726E208DC: uid=110 from=<[email protected]> orig_id=675BD24490 Feb 19 06:37:20 IceCodex postfix/cleanup[6754]: 8726E208DC: message-id=<[email protected]> Feb 19 06:37:20 IceCodex postfix/local[6758]: 85EB020053: to=<[email protected]>, orig_to=<www-data>, relay=local, delay=105438, delays=105438/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox) Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 85EB020053: removed Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 8726E208DC: from=<[email protected]>, size=1053, nrcpt=1 (queue active) Feb 19 06:37:20 IceCodex postfix/pickup[5912]: 8854B20053: uid=110 from=<[email protected]> orig_id=88FE124489 Feb 19 06:37:20 IceCodex postfix/cleanup[6761]: 8854B20053: message-id=<[email protected]> Feb 19 06:37:20 IceCodex postfix/local[6760]: 8726E208DC: to=<[email protected]>, orig_to=<www-data>, relay=local, delay=99438, delays=99438/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox) Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 8726E208DC: removed Feb 19 06:37:20 IceCodex postfix/pickup[5912]: 89678208DC: uid=110 from=<[email protected]> orig_id=7F19D244CC Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 8854B20053: from=<[email protected]>, size=1053, nrcpt=1 (queue active) Feb 19 06:37:20 IceCodex postfix/cleanup[6754]: 89678208DC: message-id=<[email protected]> Feb 19 06:37:20 IceCodex postfix/local[6758]: 8854B20053: to=<[email protected]>, orig_to=<www-data>, relay=local, delay=103039, delays=103039/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox) Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 8854B20053: removed Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 89678208DC: from=<[email protected]>, size=1053, nrcpt=1 (queue active) Feb 19 06:37:20 IceCodex postfix/local[6765]: 89678208DC: to=<[email protected]>, orig_to=<www-data>, relay=local, delay=59238, delays=59238/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox) Feb 19 06:37:20 IceCodex postfix/qmgr[5913]: 89678208DC: removed Feb 19 06:37:21 IceCodex postfix/local[6759]: DE84624498: to=<[email protected]>, orig_to=<www-data>, relay=local, delay=59839, delays=59838/0.01/0/1.3, dsn=2.0.0, status=sent (delivered to mailbox) Feb 19 06:37:21 IceCodex postfix/qmgr[5913]: DE84624498: removed Feb 19 06:37:22 IceCodex postfix/smtp[6767]: 7FEC520179: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[173.194.68.27]:25, delay=1.5, delays=0.01/0.03/0.53/0.95, dsn=2.0.0, status=sent (250 2.0.0 OK 1392809842 m75si29709183yhm.99 - gsmtp) Feb 19 06:37:22 IceCodex postfix/smtp[6763]: 0732524467: to=<[email protected]>, orig_to=<[email protected]>, relay=gmail-smtp-in.l.google.com[74.125.29.27]:25, delay=110749, delays=110747/0.05/0.54/1.6, dsn=2.0.0, status=sent (250 2.0.0 OK 1392809842 j11si29694313yhi.79 - gsmtp) Feb 19 06:38:18 IceCodex dovecot: auth-worker: mysql(localhost): Connected to database dbispconfig Feb 19 06:38:18 IceCodex dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=6779, secured Feb 19 06:38:18 IceCodex dovecot: imap([email protected]): Disconnected: Logged out bytes=79/687 Feb 19 06:38:19 IceCodex dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=6781, secured Feb 19 06:38:19 IceCodex dovecot: imap([email protected]): Disconnected: Logged out bytes=79/687 Feb 19 06:38:22 IceCodex dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=6783, secured Feb 19 06:38:22 IceCodex dovecot: imap([email protected]): Disconnected: Logged out bytes=79/687 Feb 19 06:38:22 IceCodex dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=6785, secured Feb 19 06:38:22 IceCodex dovecot: imap([email protected]): Disconnected: Logged out bytes=294/2406 Feb 19 06:40:01 IceCodex postfix/smtpd[6843]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman Feb 19 06:40:01 IceCodex postfix/smtpd[6843]: connect from localhost.localdomain[127.0.0.1] Feb 19 06:40:01 IceCodex dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured Feb 19 06:40:01 IceCodex dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured Feb 19 06:40:01 IceCodex postfix/smtpd[6843]: lost connection after CONNECT from localhost.localdomain[127.0.0.1] Feb 19 06:40:01 IceCodex postfix/smtpd[6843]: disconnect from localhost.localdomain[127.0.0.1] Feb 19 06:40:02 IceCodex postfix/cleanup[6873]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman Feb 19 06:40:02 IceCodex postfix/pickup[5912]: 2A24020179: uid=33 from=<www-data> Feb 19 06:40:02 IceCodex postfix/cleanup[6873]: 2A24020179: message-id=<[email protected]> Feb 19 06:40:02 IceCodex postfix/qmgr[5913]: 2A24020179: from=<[email protected]>, size=925, nrcpt=1 (queue active) Feb 19 06:40:02 IceCodex postfix/local[6874]: 2A24020179: to=<[email protected]>, orig_to=<www-data>, relay=local, delay=0.03, delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox) Feb 19 06:40:02 IceCodex postfix/qmgr[5913]: 2A24020179: removed Feb 19 06:44:24 IceCodex postfix/smtpd[6901]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman Feb 19 06:44:24 IceCodex postfix/smtpd[6901]: warning: hostname lx5.life813x5.com does not resolve to address 199.168.138.137: Name or service not known Feb 19 06:44:24 IceCodex postfix/smtpd[6901]: connect from unknown[199.168.138.137] Feb 19 06:44:25 IceCodex postfix/smtpd[6901]: lost connection after CONNECT from unknown[199.168.138.137] Feb 19 06:44:25 IceCodex postfix/smtpd[6901]: disconnect from unknown[199.168.138.137] Feb 19 06:45:01 IceCodex postfix/smtpd[6901]: connect from localhost.localdomain[127.0.0.1] Feb 19 06:45:01 IceCodex postfix/smtpd[6901]: lost connection after CONNECT from localhost.localdomain[127.0.0.1] Feb 19 06:45:01 IceCodex postfix/smtpd[6901]: disconnect from localhost.localdomain[127.0.0.1] Feb 19 06:45:01 IceCodex dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured I appreciate any help. Thanks! Also, when I go to my domain.com it sends me to squirrelmail login. My hostname is server.hostname.com
Okay. So apparently its working. I tried emailing myself from another account other than the one that the emails are being directed to. That was causing the issues I guess. As soon as I used another account the emails are being directed correctly.