Author Topic: Can send mail but cannot receive  (Read 8661 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Can send mail but cannot receive
« on: February 06, 2018, 08:36:14 AM »
Hi
I have issues with receiving email for my domain mydomain.com From postfix mail log, i can see the the received mail had been removed by queue manager but could not find its final destination in roundcube and there is no error log for roundcube. I have compiled mail server with AntiSpam/AntiVirus (recommended), rDNS Check (recommended):  and Install DKIM & SPF (recommended): options.

/var/log/maillog
 
Feb  6 08:18:59 tuxlab postfix/smtpd[10435]: connect from mail-oi0-x236.google.com[2607:f8b0:4003:c06::236]
Feb  6 08:18:59 tuxlab postfix/smtpd[10435]: Anonymous TLS connection established from mail-oi0-x236.google.com[2607:f8b0:4003:c06::236]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Feb  6 08:18:59 tuxlab postfix/trivial-rewrite[10442]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Feb  6 08:19:00 tuxlab postfix/smtpd[10435]: 1A92682E8: client=mail-oi0-x236.google.com[2607:f8b0:4003:c06::236]
Feb  6 08:19:00 tuxlab postfix/cleanup[10446]: 1A92682E8: message-id=<CAJtoDzc1xNGMkUPvRtGzh+nCk=Sbf3Ck-xWgRkLVNiVPewQDoQ@mail.gmail.com>
Feb  6 08:19:00 tuxlab opendkim[7226]: 1A92682E8: mail-oi0-x236.google.com [2607:f8b0:4003:c06::236] not internal
Feb  6 08:19:00 tuxlab opendkim[7226]: 1A92682E8: not authenticated
Feb  6 08:19:00 tuxlab opendkim[7226]: 1A92682E8: DKIM verification successful
Feb  6 08:19:00 tuxlab postfix/qmgr[9099]: 1A92682E8: from=<testuser@gmail.com>, size=2751, nrcpt=1 (queue active)
Feb  6 08:19:00 tuxlab postfix/smtpd[10435]: disconnect from mail-oi0-x236.google.com[2607:f8b0:4003:c06::236]
Feb  6 08:19:00 tuxlab postfix/smtpd[10450]: connect from unknown[127.0.0.1]
Feb  6 08:19:00 tuxlab postfix/trivial-rewrite[10442]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Feb  6 08:19:00 tuxlab postfix/smtpd[10450]: DCB078422: client=unknown[127.0.0.1]
Feb  6 08:19:00 tuxlab postfix/cleanup[10446]: DCB078422: message-id=<CAJtoDzc1xNGMkUPvRtGzh+nCk=Sbf3Ck-xWgRkLVNiVPewQDoQ@mail.gmail.com>
Feb  6 08:19:00 tuxlab opendkim[7226]: DCB078422: no signing table match for 'testuser@gmail.com'
Feb  6 08:19:00 tuxlab opendkim[7226]: DCB078422: DKIM verification successful
Feb  6 08:19:00 tuxlab postfix/qmgr[9099]: DCB078422: from=<testuser@gmail.com>, size=3272, nrcpt=1 (queue active)
Feb  6 08:19:00 tuxlab postfix/smtpd[10450]: disconnect from unknown[127.0.0.1]
Feb  6 08:19:00 tuxlab postfix/trivial-rewrite[10442]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Feb  6 08:19:00 tuxlab postfix/trivial-rewrite[10442]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Feb  6 08:19:00 tuxlab postfix/trivial-rewrite[10442]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Feb  6 08:19:00 tuxlab postfix/local[10453]: DCB078422: to=<root@mydomain.com>, orig_to=<support@mydomain.com>, relay=local, delay=0.06, delays=0.05/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Feb  6 08:19:00 tuxlab postfix/qmgr[9099]: DCB078422: removed
Feb  6 08:19:00 tuxlab amavis[7218]: (07218-03) Passed CLEAN {RelayedInbound}, [2607:f8b0:4003:c06::236]:34891 [2607:f8b0:4003:c06::236] <testuser@gmail.com> -> <support@mydomain.com>, Queue-ID: 1A92682E8, Message-ID: <CAJtoDzc1xNGMkUPvRt                       Gzh+nCk=Sbf3Ck-xWgRkLVNiVPewQDoQ@mail.gmail.com>, mail_id: cIWwRVEn_IHU, Hits: -0.798, size: 2843, queued_as: DCB078422,                        dkim_sd=20161025:gmail.com, 665 ms
Feb  6 08:19:00 tuxlab postfix/smtp[10447]: 1A92682E8: to=<support@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.98, delays=0.29/0.02/0/0.67, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued                        as DCB078422)
Feb  6 08:19:00 tuxlab postfix/qmgr[9099]: 1A92682E8: removed


/var/log/dovecot.log

Feb 06 08:15:13 imap(support@mydomain.com): Warning: autocreate plugin is deprecated, use mailbox { auto } setting instead
Feb 06 08:15:13 dict: Error: Failed to initialize dictionary 'quotadict': dict mysql: Can't open configuration file /etc/dovecot/dovecot-dict-quota.conf: Permission denied
Feb 06 08:15:13 dict: Error: Failed to initialize dictionary 'quotadict': dict mysql: Can't open configuration file /etc/dovecot/dovecot-dict-quota.conf: Permission denied
Feb 06 08:15:13 imap(support@mydomain.com): Error: write(/var/run/dovecot/dict) failed: Broken pipe


Does it related to the 'permission denied' error ? I have checked the permission of the /etc/dovecot folder and it looks correct.


# ls -l /etc/dovecot/

total 24
drwxr-xr-x 2 root root 4096 Feb  3 05:40 conf.d
-rw-r--r-- 1 root root 2908 Feb  6 08:25 dovecot.conf
-rw-r--r-- 1 root root 2894 Feb  6 07:20 dovecot.conf_bkp
-rw-r----- 1 root mail  274 Feb  6 08:25 dovecot-dict-quota.conf
-rw-r----- 1 root mail  731 Feb  6 08:25 dovecot-mysql.conf
-rw-r--r-- 1 root root   54 Mar 27  2017 trash.conf

Can anyone point me where could be the error ?

Regards

Offline
*
Re: Can send mail but cannot receive
« Reply #1 on: February 06, 2018, 09:27:52 AM »
Hi
I have changed myhostname to mail.mydomain.com from mydomain.com and now i can receive the mail.
Brris

Offline
*
Re: Can send mail but cannot receive
« Reply #2 on: July 25, 2019, 01:30:43 PM »
I have the same problem any solution for it ?

Offline
*
Re: Can send mail but cannot receive
« Reply #3 on: January 13, 2020, 07:49:24 PM »
Hi Dear all, I have Same problem please help me :'( :'(

Re: Can send mail but cannot receive
« Reply #4 on: January 13, 2020, 10:09:31 PM »
Invalid hostname.
You should not have domain name as the hostname.
Another basic error, which isn't a CWP problem.   :-\