Hi ,
Here are logs from mail server. I collect logs from 4 diferent scenarios:
Sending to local address WITH autentication in eGW mail settings:
Feb 25 19:54:57 mail postfix/smtpd[12176]: connect from unknown[192.168.2.240]
Feb 25 19:54:57 mail postfix/smtpd[12176]: lost connection after RSET from unknown[192.168.2.240]
Feb 25 19:54:57 mail postfix/smtpd[12176]: disconnect from unknown[192.168.2.240]
Sending to external address WITH autentication in eGW mail settings:
Feb 25 19:56:30 mail dovecot: imap-login: Login: user=<user@domaininzentyal.com >, method=PLAIN, rip=192.168.2.240, lip=IPofZentyal , mpid=12187, TLS
Feb 25 19:56:30 mail dovecot: imap(user@domaininzentyal.com ): Disconnected: Logged out bytes=52/996
Feb 25 19:56:30 mail postfix/smtpd[12176]: connect from unknown[192.168.2.240]
Feb 25 19:56:30 mail postfix/smtpd[12176]: lost connection after RSET from unknown[192.168.2.240]
Feb 25 19:56:30 mail postfix/smtpd[12176]: disconnect from unknown[192.168.2.240]
Sending to external address WITHOUT autentication in eGW mail settings:
Feb 25 19:58:31 mail dovecot: imap-login: Login: user=<user@domaininzentyal.com >, method=PLAIN, rip=192.168.2.240, lip=IPofZentyal , mpid=12207, TLS
Feb 25 19:58:31 mail dovecot: imap(user@domaininzentyal.com ): Disconnected: Logged out bytes=52/996
Feb 25 19:58:31 mail postfix/smtpd[12208]: connect from unknown[192.168.2.240]
Feb 25 19:58:31 mail postfix/smtpd[12208]: NOQUEUE: reject: RCPT from unknown[192.168.2.240]: 554 5.7.1 someaddress@gmail.com: Relay access denied; from=<user@domaininzentyal.com > to=someaddress@gmail.com proto=ESMTP helo=<[IPofZentyal ]>
Feb 25 19:58:31 mail postfix/smtpd[12208]: lost connection after RCPT from unknown[192.168.2.240]
Feb 25 19:58:31 mail postfix/smtpd[12208]: disconnect from unknown[192.168.2.240]
Sending to local address WITHOUT autentication in eGW mail settings (it is the only scenario when mail gets through):
Feb 25 20:00:03 mail dovecot: imap-login: Login: user=<user@domaininzentyal.com >, method=PLAIN, rip=192.168.2.240, lip=IPofZentyal , mpid=12222, TLS
Feb 25 20:00:03 mail dovecot: imap(user@domaininzentyal.com ): Disconnected: Logged out bytes=52/996
Feb 25 20:00:03 mail postfix/smtpd[12208]: connect from unknown[192.168.2.240]
Feb 25 20:00:03 mail postfix/smtpd[12208]: 39247867E79: client=unknown[192.168.2.240]
Feb 25 20:00:03 mail postfix/cleanup[12223]: 39247867E79: message-id=f6f9135b571a11a86774744c2e6daf9d@192.168.2.240
Feb 25 20:00:03 mail postfix/qmgr[15136]: 39247867E79: from=<user@domaininzentyal.com >, size=973, nrcpt=1 (queue active)
Feb 25 20:00:03 mail postfix/smtpd[12208]: disconnect from unknown[192.168.2.240]
Feb 25 20:00:03 mail amavis[10373]: (10373-08) ESMTP::10024 /var/lib/amavis/amavis-20140225T133346-10373: <user@domaininzentyal.com > -> user2@domaininzentyal.com SIZE=973 Received: from mail.mailzentyal.lan ([127.0.0.1]) by localhost (mail.mailzentyal.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for user2@domaininzentyal.com; Tue, 25 Feb 2014 20:00:03 +0100 (CET)
Feb 25 20:00:03 mail amavis[10373]: (10373-08) Checking: 0m4e2nOg5fA2 [192.168.2.240] <user@domaininzentyal.com > -> user2@domaininzentyal.com
Feb 25 20:00:06 mail postfix/smtpd[12229]: connect from localhost.localdomain[127.0.0.1]
Feb 25 20:00:06 mail postfix/smtpd[12229]: 5452E867E7A: client=localhost.localdomain[127.0.0.1]
Feb 25 20:00:06 mail postfix/cleanup[12223]: 5452E867E7A: message-id=f6f9135b571a11a86774744c2e6daf9d@192.168.2.240
Feb 25 20:00:06 mail postfix/qmgr[15136]: 5452E867E7A: from=<user@domaininzentyal.com >, size=1647, nrcpt=1 (queue active)
Feb 25 20:00:06 mail postfix/smtpd[12229]: disconnect from localhost.localdomain[127.0.0.1]
Feb 25 20:00:06 mail amavis[10373]: (10373-08) FWD via SMTP: <user@domaininzentyal.com > -> user2@domaininzentyal.com,BODY=7BIT 250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 5452E867E7A
Feb 25 20:00:06 mail amavis[10373]: (10373-08) Passed, <user@domaininzentyal.com > -> user2@domaininzentyal.com, quarantine 0m4e2nOg5fA2, Message-ID: f6f9135b571a11a86774744c2e6daf9d@192.168.2.240,
Feb 25 20:00:06 mail amavis[10373]: (10373-08) Hits: -0.998
Feb 25 20:00:06 mail amavis[10373]: (10373-08) Passed CLEAN, <user@domaininzentyal.com > -> user2@domaininzentyal.com, Hits: -0.998, tag=0, tag2=5, kill=5, queued_as: 5452E867E7A, L/Y/0/0
Feb 25 20:00:06 mail postfix/smtp[12224]: 39247867E79: to=user2@domaininzentyal.com, orig_to=user2.surname2@domaininzentyal.com, relay=127.0.0.1[127.0.0.1]:10024, delay=3.4, delays=0.23/0.15/0.01/3, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 5452E867E7A)
Feb 25 20:00:06 mail postfix/qmgr[15136]: 39247867E79: removed
Feb 25 20:00:06 mail dovecot: lda(user2@domaininzentyal.com): msgid=f6f9135b571a11a86774744c2e6daf9d@192.168.2.240: saved mail to INBOX
Feb 25 20:00:06 mail postfix/pipe[12230]: 5452E867E7A: to=user2@domaininzentyal.com, relay=dovecot, delay=0.41, delays=0.12/0.03/0/0.26, dsn=2.0.0, status=sent (delivered via dovecot service)
Feb 25 20:00:06 mail postfix/qmgr[15136]: 5452E867E7A: removed
Hope that this can gives up some insight into problem.
If needed I can also check IMAP settings in eGW.
Br
Damjan