1

Topic: iredmail successfully installed, no maillog found in /var/log

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 OPENLDAP edition.
- Linux/BSD distribution name and version: Linux version 4.4.49
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx): Ngnix
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
2 issues I found:
1) I can't found maillog or mail.log under /var/log
I can only trace my email problem thru /var/etc/iredmail/iredmailapd.log
2) I can send email thru Roundcube, and I can get gmail's email. but cannot receive any.

Here is iredmailapd.log
2018-05-03 15:03:25 INFO [127.0.0.1] RCPT, kentchan@xxxx.net => kentchan@gmail.com, DUNNO [sasl_username=kentchan@xxxx.net, sender=kentchan@xxxx.net, client_name=mail.xxxx.net, reverse_client_name=mail.xxxx.net, helo=_, encryption_protocol=TLSv1.2, process_time=0.0177s]

2018-05-03 15:03:25 INFO [127.0.0.1] END-OF-MESSAGE, kenneth@xxxx.net => kentchan@gmail.com, DUNNO [recipient_count=1, size=539, process_time=0.0196s]

I checked postfix/master.cf and main.cf but both no hints to find where the log file should be.'
I manually create maillog and mail.log but both were 0bytes.

Let me know if I need to post any other files for troubleshoot, and let me know how to fix the missing log and cannot receive email issue.

Thank you very much!!!
Kent

----

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

2

Re: iredmail successfully installed, no maillog found in /var/log

Additional to point 2.

what I mean is:
I can successfully send out email, but my gmail not receive any email from kentchan@xxxx.net

Checked A, MX record, SMTP, were all good by using mxtoolbox

thanks!
Kent

3

Re: iredmail successfully installed, no maillog found in /var/log

Does your ISP block port 25?

kentchan4 wrote:

1) I can't found maillog or mail.log under /var/log
I can only trace my email problem thru /var/etc/iredmail/iredmailapd.log

Are you sure there's a file called "/var/etc/iredmail/iredmailapd.log"?

4

Re: iredmail successfully installed, no maillog found in /var/log

ZhangHuangbin wrote:

Does your ISP block port 25?

kentchan4 wrote:

1) I can't found maillog or mail.log under /var/log
I can only trace my email problem thru /var/etc/iredmail/iredmailapd.log

Are you sure there's a file called "/var/etc/iredmail/iredmailapd.log"?


Ops, it's my fault, it should be /var/log/iredapd

5

Re: iredmail successfully installed, no maillog found in /var/log

Hi Zhang,

I have reinstall iredmail and everything go fine now!
however, I encounter email cannot send to gmail and mac.com... here is the postfix log, appreciate if you can give me hints to troubleshoot.

I tried mail tester and it seem time out. I used mxtoolbox scanned my domain and found port 25 is open.
I have checked main.cf, refer to other's experience, I add local.$myhostname at the end and it is like this:
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname

I won't do other change at all.

May  4 04:18:54 cloud amavis[1867]: (01867-02) Passed CLEAN {RelayedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:48382 <postmaster@xxxx.net> -> <web-bz6ix@mail-tester.com>, Queue-ID: E86792A2DAA, Message-ID: <cb72d5b703056a28f432b501ccc87fc8@xxxx.net>, mail_id: dFIgR4ozKFHH, Hits: -, size: 555, queued_as: 194F12A2DB5, dkim_new=dkim:koalatree.net, 113 ms
May  4 04:18:54 cloud postfix/amavis/smtp[7148]: E86792A2DAA: to=<web-bz6ix@mail-tester.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.2, delays=0.07/0/0/0.13, 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 194F12A2DB5)
May  4 04:18:54 cloud postfix/qmgr[4973]: E86792A2DAA: removed
May  4 04:19:25 cloud postfix/smtp[7153]: connect to mail-tester.com[94.23.206.89]:25: Connection timed out
May  4 04:19:25 cloud postfix/smtp[7153]: 194F12A2DB5: to=<web-bz6ix@mail-tester.com>, relay=none, delay=31, delays=0.01/0.01/31/0, dsn=4.4.1, status=deferred (connect to mail-tester.com[94.23.206.89]:25: Connection timed out)

Thank you very much!

6

Re: iredmail successfully installed, no maillog found in /var/log

kentchan4 wrote:

May  4 04:19:25 cloud postfix/smtp[7153]: 194F12A2DB5: to=<web-bz6ix@mail-tester.com>, relay=none, delay=31, delays=0.01/0.01/31/0, dsn=4.4.1, status=deferred (connect to mail-tester.com[94.23.206.89]:25: Connection timed out)

Does your ISP block port 25?

7

Re: iredmail successfully installed, no maillog found in /var/log

kentchan4 wrote:

Hi Zhang,

I have reinstall iredmail and everything go fine now!
however, I encounter email cannot send to gmail and mac.com... here is the postfix log, appreciate if you can give me hints to troubleshoot.

I tried mail tester and it seem time out. I used mxtoolbox scanned my domain and found port 25 is open.
I have checked main.cf, refer to other's experience, I add local.$myhostname at the end and it is like this:
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname

I won't do other change at all.

May  4 04:18:54 cloud amavis[1867]: (01867-02) Passed CLEAN {RelayedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:48382 <postmaster@xxxx.net> -> <web-bz6ix@mail-tester.com>, Queue-ID: E86792A2DAA, Message-ID: <cb72d5b703056a28f432b501ccc87fc8@xxxx.net>, mail_id: dFIgR4ozKFHH, Hits: -, size: 555, queued_as: 194F12A2DB5, dkim_new=dkim:koalatree.net, 113 ms
May  4 04:18:54 cloud postfix/amavis/smtp[7148]: E86792A2DAA: to=<web-bz6ix@mail-tester.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.2, delays=0.07/0/0/0.13, 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 194F12A2DB5)
May  4 04:18:54 cloud postfix/qmgr[4973]: E86792A2DAA: removed
May  4 04:19:25 cloud postfix/smtp[7153]: connect to mail-tester.com[94.23.206.89]:25: Connection timed out
May  4 04:19:25 cloud postfix/smtp[7153]: 194F12A2DB5: to=<web-bz6ix@mail-tester.com>, relay=none, delay=31, delays=0.01/0.01/31/0, dsn=4.4.1, status=deferred (connect to mail-tester.com[94.23.206.89]:25: Connection timed out)

Thank you very much!


My /var/log/mail.log
Jun  4 00:19:00 mail postfix/qmgr[8684]: 5EBEEB8411A0: from=<postmaster@ngawikab.go.id>, size=2451, nrcpt=1 (queue active)
Jun  4 00:19:00 mail postfix/10025/smtpd[22327]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jun  4 00:19:00 mail postfix/qmgr[8684]: 6297FB8411A1: from=<postmaster@ngawikab.go.id>, size=2218, nrcpt=1 (queue active)
Jun  4 00:19:00 mail amavis[3155]: (03155-01) Passed CLEAN {RelayedInternal}, MYNETS LOCAL [127.0.0.1]:54488 <postmaster@ngawikab.go.id> -> <avidianto@gmail.com>, Queue-ID: 86C20B8417C2, Message-ID: <b090c1fe740c585ae8ca69f46bbbab55@ngawikab.go.id>, mail_id: UZ6J_ajM6pE0, Hits: -1.1, size: 1785, queued_as: 6297FB8411A1, dkim_sd=dkim:ngawikab.go.id, 499 ms, Tests: [ALL_TRUSTED=-1,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1]
Jun  4 00:19:00 mail amavis[3160]: (03160-01) Passed CLEAN {RelayedInternal}, MYNETS LOCAL [127.0.0.1]:52838 <postmaster@ngawikab.go.id> -> <avidianto@gmail.com>, Queue-ID: 98FC5B8417D6, Message-ID: <0ad8b5e1ff70c064ac46e73809d4e6bf@ngawikab.go.id>, mail_id: q7nOwEyqLWnR, Hits: -1.1, size: 2018, queued_as: 5EBEEB8411A0, dkim_sd=dkim:ngawikab.go.id, 488 ms, Tests: [ALL_TRUSTED=-1,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1]
Jun  4 00:19:00 mail postfix/amavis/smtp[22317]: D4458B840FDB: to=<avidianto@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=49685, delays=49684/0.01/0.01/0.52, 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 6297FB8411A1)
Jun  4 00:19:00 mail postfix/amavis/smtp[22318]: DC513B841192: to=<avidianto@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=8539, delays=8538/0.01/0.01/0.51, 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 5EBEEB8411A0)
Jun  4 00:19:00 mail postfix/qmgr[8684]: D4458B840FDB: removed
Jun  4 00:19:00 mail postfix/qmgr[8684]: DC513B841192: removed
Jun  4 00:19:00 mail postfix/smtp[22335]: connect to gmail-smtp-in.l.google.com[2404:6800:4003:c03::1b]:25: Network is unreachable
Jun  4 00:19:00 mail postfix/smtp[22336]: connect to gmail-smtp-in.l.google.com[2404:6800:4003:c03::1a]:25: Network is unreachable
Jun  4 00:19:30 mail postfix/smtp[22336]: connect to gmail-smtp-in.l.google.com[74.125.68.27]:25: Connection timed out
Jun  4 00:19:30 mail postfix/smtp[22335]: connect to gmail-smtp-in.l.google.com[74.125.24.26]:25: Connection timed out

in the same case, i can't send mail too. such as twitter, gmail, and yahoo.

ZhangHuangbin wrote:
kentchan4 wrote:

May  4 04:19:25 cloud postfix/smtp[7153]: 194F12A2DB5: to=<web-bz6ix@mail-tester.com>, relay=none, delay=31, delays=0.01/0.01/31/0, dsn=4.4.1, status=deferred (connect to mail-tester.com[94.23.206.89]:25: Connection timed out)

Does your ISP block port 25?

even though, my ISP has been allowed port 25. can you help us to complete this problem ? thank you.

8

Re: iredmail successfully installed, no maillog found in /var/log

can you do : telnet localhost smtp? if you can then ehlo example.org to see a menu?