1 (edited by WarfaceZ 2016-06-26 18:42:04)

Topic: [SOLVED] not sending and receiving + Not work website

======== Required information ====
- iRedMail version 0.9.5-1:
- Linux/BSD Ubuntu 14.04:
- Store mail accounts MySQL:
- Web server Apache:
- Manage mail accounts with iRedAdmin-Pro? No
====

Good morning, I have a problem with sending a receiving emails, i sent for myself fo example, and nothing i receive.


dovecot.log

Jun 11 01:43:48 imap-login: Info: Login: user=<xxx@troia-studio.cz>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=21338, secured, session=<p4k5HPU0mQB/AAAB>
Jun 11 01:44:48 auth-worker(21353): Error: passwd-file /etc/dovecot/dovecot-master-users: User sogo_sieve_master@not-exist.com exists more than once
Jun 11 01:44:48 auth-worker(21353): Error: passwd-file /etc/dovecot/dovecot-master-users: User sogo_sieve_master@not-exist.com exists more than once
Jun 11 01:44:48 imap-login: Info: Login: user=<xxx@troia-studio.cz>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=21352, secured, session=<wzLNH/U0owB/AAAB>
Jun 11 01:44:48 imap(xxx@troia-studio.cz): Info: Disconnected: Logged out in=272 out=1298
Jun 11 01:45:48 imap-login: Info: Login: user=<xxx@troia-studio.cz>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=21362, secured, session=<jb1gI/U0qAB/AAAB>
Jun 11 01:45:48 imap(xxx@troia-studio.cz): Info: Disconnected: Logged out in=272 out=1298

mail.log

Jun 11 01:44:13 mail postfix/qmgr[13956]: 6AABB3B77F5: from=<xxx@mail.troia-studio.cz>, size=3040, nrcpt=1 (queue active)
Jun 11 01:44:13 mail postfix/qmgr[13956]: F246F3B77E0: from=<xxx@troia-studio.cz>, size=1043, nrcpt=1 (queue active)
Jun 11 01:44:13 mail postfix/qmgr[13956]: CC1993B7836: from=<xxx@mail.troia-studio.cz>, size=3040, nrcpt=1 (queue active)
Jun 11 01:44:13 mail postfix/qmgr[13956]: CAE053B77F6: from=<gxxx@gmail.com>, size=2706, nrcpt=1 (queue active)
Jun 11 01:44:13 mail postfix/smtp[21345]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Jun 11 01:44:13 mail postfix/smtp[21345]: 6AABB3B77F5: to=<xxx@mail.troia-studio.cz>, relay=none, delay=2111, delays=2111/0.03/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Jun 11 01:44:13 mail postfix/smtp[21345]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused
Jun 11 01:44:13 mail postfix/smtp[21345]: F246F3B77E0: to=<xxx@gmail.com>, relay=none, delay=2182, delays=2182/0.04/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
Jun 11 01:44:13 mail postfix/smtp[21345]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Jun 11 01:44:13 mail postfix/smtp[21346]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Jun 11 01:44:13 mail postfix/smtp[21346]: CAE053B77F6: to=<xxx@troia-studio.cz>, relay=none, delay=2107, delays=2107/0.05/0.01/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Jun 11 01:44:13 mail postfix/smtp[21345]: CC1993B7836: to=<xxx@mail.troia-studio.cz>, relay=none, delay=312, delays=311/0.05/0.01/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Jun 11 01:47:33 mail postfix/scache[21349]: statistics: start interval Jun 11 01:44:13
Jun 11 01:47:33 mail postfix/scache[21349]: statistics: domain lookup hits=0 miss=2 success=0%

What I need do to fix it please ?

After restart I go to website every ok, but after few  minutes not, apache is still running, but I found in syslog this:

Jun 11 03:02:44 mail fail2ban.jail   : INFO   Jail 'sogo-iredmail' started
Jun 11 03:02:45 mail kernel: [   34.812072] hrtimer: interrupt took 32125 ns
Jun 11 03:02:45 mail kernel: [   34.894826] init: plymouth-upstart-bridge main process ended, respawning
Jun 11 03:03:02 mail CRON[2676]: (sogo) CMD (/usr/sbin/sogo-tool expire-sessions 30; /usr/sbin/sogo-ealarms-notify)
Jun 11 03:03:11 mail fail2ban.actions: WARNING [dovecot-iredmail] Ban 88.103.224.1
Jun 11 03:04:01 mail CRON[2717]: (sogo) CMD (/usr/sbin/sogo-tool expire-sessions 30; /usr/sbin/sogo-ealarms-notify)
Jun 11 03:05:01 mail CRON[2723]: (sogo) CMD (/usr/sbin/sogo-tool expire-sessions 30; /usr/sbin/sogo-ealarms-notify)
Jun 11 03:06:01 mail CRON[2729]: (sogo) CMD (/usr/sbin/sogo-tool expire-sessions 30; /usr/sbin/sogo-ealarms-notify)

My IP was banned ? why ? I look only to my website, so I must remove fail2ban...

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [SOLVED] not sending and receiving + Not work website

WarfaceZ wrote:

Jun 11 01:44:13 mail postfix/smtp[21345]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

Amavisd service is not running. Please start it first.

Also, how much memory does this server have?

3 (edited by WarfaceZ 2016-06-11 20:26:50)

Re: [SOLVED] not sending and receiving + Not work website

ZhangHuangbin wrote:
WarfaceZ wrote:

Jun 11 01:44:13 mail postfix/smtp[21345]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

Amavisd service is not running. Please start it first.

Also, how much memory does this server have?

When i start amavis I get error:

Starting amavisd: Error in config file "/etc/amavis/conf.d/50-user": dkim_key: selector dkim for domain troia-studio.cz already in use
(failed).

I found i fix http://www.iredmail.org/forum/topic151- … lenny.html but link to script is broken hmm

Server have 16GB ram.

4

Re: [SOLVED] not sending and receiving + Not work website

WarfaceZ wrote:

Starting amavisd: Error in config file "/etc/amavis/conf.d/50-user": dkim_key: selector dkim for domain troia-studio.cz already in use

You have duplicate setting of "dkim_key(...)" in 50-user, fix it and start amavisd again.

5 (edited by WarfaceZ 2016-06-26 18:46:33)

Re: [SOLVED] not sending and receiving + Not work website

ZhangHuangbin wrote:
WarfaceZ wrote:

Starting amavisd: Error in config file "/etc/amavis/conf.d/50-user": dkim_key: selector dkim for domain troia-studio.cz already in use

You have duplicate setting of "dkim_key(...)" in 50-user, fix it and start amavisd again.

There was 3 duplicity, now working sending, but receive not hmm

syslog:

Jun 11 14:47:01 mail CRON[13535]: (sogo) CMD (/usr/sbin/sogo-tool expire-sessions 30; /usr/sbin/sogo-ealarms-notify)
Jun 11 14:47:02 mail postfix/postscreen[13539]: CONNECT from [209.85.218.42]:35023 to [185.8.238.40]:25
Jun 11 14:47:02 mail postfix/postscreen[13539]: cache btree:/var/lib/postfix/postscreen_cache full cleanup: retained=6 dropped=0 entries
Jun 11 14:47:08 mail postfix/postscreen[13539]: PASS NEW [209.85.218.42]:35023
Jun 11 14:47:08 mail postfix/smtpd[13543]: connect from mail-oi0-f42.google.com[209.85.218.42]
Jun 11 14:47:09 mail postfix/smtpd[13543]: Anonymous TLS connection established from mail-oi0-f42.google.com[209.85.218.42]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Jun 11 14:47:09 mail postfix/smtpd[13543]: A44E63B7869: client=mail-oi0-f42.google.com[209.85.218.42]
Jun 11 14:47:09 mail postfix/cleanup[13471]: A44E63B7869: message-id=<CALBtYbT8CCJw1wYPQnhKGF_ZhVfZHDVNtZsVcYNGR7qn=shKPA@mail.gmail.com>
Jun 11 14:47:09 mail postfix/qmgr[2963]: A44E63B7869: from=<ghome.cz@gmail.com>, size=3506, nrcpt=1 (queue active)
Jun 11 14:47:10 mail postfix/smtpd[13543]: disconnect from mail-oi0-f42.google.com[209.85.218.42]
Jun 11 14:47:10 mail postfix/smtpd[13553]: connect from localhost[127.0.0.1]
Jun 11 14:47:10 mail postfix/smtpd[13553]: 82C433B786E: client=localhost[127.0.0.1]
Jun 11 14:47:10 mail postfix/cleanup[13471]: 82C433B786E: message-id=<CALBtYbT8CCJw1wYPQnhKGF_ZhVfZHDVNtZsVcYNGR7qn=shKPA@mail.gmail.com>
Jun 11 14:47:10 mail postfix/smtpd[13553]: disconnect from localhost[127.0.0.1]
Jun 11 14:47:10 mail postfix/qmgr[2963]: 82C433B786E: from=<xxx@gmail.com>, size=4107, nrcpt=1 (queue active)
Jun 11 14:47:10 mail amavis[13428]: (13428-02) Passed CLEAN {RelayedInbound}, [209.85.218.42]:35023 [209.85.218.42]  -> , Queue-ID: A44E63B7869, Message-ID: , mail_id: mBy73bwnC38p, Hits: -0.818, size: 3506, queued_as: 82C433B786E, dkim_sd=20120113:gmail.com, 611 ms, Tests: [DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,FREEMAIL_FROM=0.001,HTML_MESSAGE=0.001,RCVD_IN_DNSWL_LOW=-0.7,RCVD_IN_MSPIKE_H3=-0.01,RCVD_IN_MSPIKE_WL=-0.01,SPF_PASS=-0.001,URIBL_BLOCKED=0.001]
Jun 11 14:47:10 mail postfix/smtp[13477]: A44E63B7869: to=<xxx@troia-studio.cz>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.94, delays=0.31/0/0.02/0.61, 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 82C433B786E)
Jun 11 14:47:10 mail postfix/qmgr[2963]: A44E63B7869: removed
Jun 11 14:47:10 mail postfix/pipe[13527]: 82C433B786E: to=<xxx@troia-studio.cz>, relay=dovecot, delay=0.07, delays=0.01/0.01/0/0.04, dsn=4.3.0, status=deferred (temporary failure)
Jun 11 14:48:01 mail CRON[13563]: (sogo) CMD (/usr/sbin/sogo-tool expire-sessions 30; /usr/sbin/sogo-ealarms-notify)

6 (edited by WarfaceZ 2016-06-26 18:47:13)

Re: [SOLVED] not sending and receiving + Not work website

I get new error:

Jun 11 18:43:25 mail postfix/qmgr[3656]: 280003B788C: from=<xxx@gmail.com>, size=3305, nrcpt=1 (queue active)
Jun 11 18:43:25 mail postfix/smtpd[3748]: disconnect from localhost[127.0.0.1]
Jun 11 18:43:25 mail amavis[1830]: (01830-03) Passed CLEAN {RelayedInbound}, [209.85.218.52]:36115 [209.85.218.52]  -> , Queue-ID: 61DF43B788B, Message-ID: , mail_id: j2k--6FuvUyD, Hits: -0.819, size: 2703, queued_as: 280003B788C, dkim_sd=20120113:gmail.com, 501 ms, Tests: [DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,FREEMAIL_FROM=0.001,HTML_MESSAGE=0.001,RCVD_IN_DNSWL_LOW=-0.7,RCVD_IN_MSPIKE_H3=-0.01,RCVD_IN_MSPIKE_WL=-0.01,SPF_PASS=-0.001]
Jun 11 18:43:25 mail postfix/smtp[3745]: 61DF43B788B: to=<xxx@troia-studio.cz>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.85, delays=0.31/0.02/0.02/0.5, 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 280003B788C)
Jun 11 18:43:25 mail postfix/qmgr[3656]: 61DF43B788B: removed
Jun 11 18:43:25 mail postfix/pipe[3749]: 280003B788C: to=<xxx@troia-studio.cz>, relay=dovecot, delay=0.06, delays=0.02/0.01/0/0.03, dsn=4.3.0, status=deferred (temporary failure)

SOLVED - I change UID + GID in /etc/passwd 3,4 paramto 2000 and in /etc/group set group id (GID) to 2000 + change permisions for /var/log/dovecot-sieve.log wink

7

Re: [SOLVED] not sending and receiving + Not work website

WarfaceZ wrote:

SOLVED - I change UID + GID in /etc/passwd 3,4 paramto 2000 and in /etc/group set group id (GID) to 2000 + change permisions for /var/log/dovecot-sieve.log wink

I'm afraid that this is not the solution.
Mailboxes under /var/vmail/vmail1/ should be owned by user "vmail:vmail", permission 0700.