1

Topic: Can send but cannot receive emails. OpenBSD5.8 x64

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.3
- Linux/BSD distribution name and version: OpenBSD5.8 x64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue: Not certain yet.
====

I had to do fresh install of iRedMail 0.9.3 on OpenBSD5.8 x64. This install is using MariaDB. I was able to verify that DNS was working properly and the DKIM key is valid and passed however, I can send mail to another mail server but I cannot receive any mail to the inboxes of the accounts. I can send/receive mail between accounts on the server. It was noticed that this version is no longer using spamdb for greylisting that I was used to and have not been having much luck finding how to manage the actually greylists or manage iredapd or understand fully what is blocking all of the incoming mail. Please advise. Thank you greatly for your hard work on this project.

----

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

2

Re: Can send but cannot receive emails. OpenBSD5.8 x64

I've added output of /var/log/maillog:

# cat maillog 
Jan 16 22:10:25 {server name} smtpd[9045]: info: OpenSMTPD 5.4.4 starting
Jan 16 22:10:25 {server name} smtpd[28683]: info: startup
Jan 16 22:10:27 {server name} smtpd[6325]: smtp-in: New session e4b6474a70be6691 from host [server_hostname].com [local]
Jan 16 22:10:27 {server name} smtpd[6325]: smtp-in: Accepted message a70674c5 on session e4b6474a70be6691: from=<root@[server_hostname].com>, to=<root@[server_hostname].com>, size=365, ndest=1, proto=ESMTP
Jan 16 22:10:27 {server name} smtpd[6325]: smtp-in: Closing session e4b6474a70be6691
Jan 16 22:10:27 {server name} smtpd[6325]: delivery: Ok for a70674c59fbcf3f9: from=<root@[server_hostname].com>, to=<root@[server_hostname].com>, user=lars, method=mbox, delay=0s, stat=Delivered
Jan 16 22:29:46 {server name} smtpd[8465]: info: OpenSMTPD 5.4.4 starting
Jan 16 22:29:46 {server name} smtpd[10473]: info: startup
Jan 16 22:39:40 {server name} postfix[1389]: warning: smtputf8_enable is true, but EAI support is not compiled in
Jan 16 22:39:59 {server name} postfix[19262]: warning: smtputf8_enable is true, but EAI support is not compiled in
Jan 16 22:40:06 {server name} postfix/postsuper[942]: warning: smtputf8_enable is true, but EAI support is not compiled in
Jan 16 22:55:13 {server name} postfix/postalias[11692]: warning: smtputf8_enable is true, but EAI support is not compiled in
Jan 16 22:56:11 {server name} postfix[3242]: Postfix is running with backwards-compatible default settings
Jan 16 22:56:11 {server name} postfix[3242]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Jan 16 22:56:11 {server name} postfix[3242]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Jan 16 22:56:12 {server name} postfix/postfix-script[11360]: fatal: the Postfix mail system is not running
Jan 16 23:01:04 {server name} postfix/postdrop[3779]: warning: unable to look up public/pickup: No such file or directory
Jan 16 23:25:11 {server name} amavis[5525]: starting. /usr/local/sbin/amavisd at [server_hostname].com amavisd-new-2.10.1 (20141025), Unicode aware
Jan 16 23:25:14 {server name} amavis[7318]: Net::Server: Group Not Defined.  Defaulting to EGID '530 530'
Jan 16 23:25:14 {server name} amavis[7318]: Net::Server: User Not Defined.  Defaulting to EUID '530'
Jan 16 23:25:14 {server name} amavis[7318]: Module Amavis::Conf        2.404
Jan 16 23:25:14 {server name} amavis[7318]: Module Archive::Zip        1.30
Jan 16 23:25:14 {server name} amavis[7318]: Module BerkeleyDB          0.55
Jan 16 23:25:14 {server name} amavis[7318]: Module Compress::Raw::Zlib 2.065
Jan 16 23:25:14 {server name} amavis[7318]: Module Compress::Zlib      2.064
Jan 16 23:25:14 {server name} amavis[7318]: Module Crypt::OpenSSL::RSA 0.28
Jan 16 23:25:14 {server name} amavis[7318]: Module DBD::mysql          4.029
Jan 16 23:25:14 {server name} amavis[7318]: Module DBI                 1.633
Jan 16 23:25:14 {server name} amavis[7318]: Module DB_File             1.831
Jan 16 23:25:14 {server name} amavis[7318]: Module Digest::MD5         2.53
Jan 16 23:25:14 {server name} amavis[7318]: Module Digest::SHA         5.88
Jan 16 23:25:14 {server name} amavis[7318]: Module Encode              2.60
Jan 16 23:25:14 {server name} amavis[7318]: Module File::LibMagic      1.13
Jan 16 23:25:14 {server name} amavis[7318]: Module File::Temp          0.2304
Jan 16 23:25:14 {server name} amavis[7318]: Module IO::Socket::INET6   2.72
Jan 16 23:25:14 {server name} amavis[7318]: Module IO::Socket::IP      0.29
Jan 16 23:25:14 {server name} amavis[7318]: Module MIME::Entity        5.505
Jan 16 23:25:14 {server name} amavis[7318]: Module MIME::Parser        5.505
Jan 16 23:25:14 {server name} amavis[7318]: Module MIME::Tools         5.505
Jan 16 23:25:14 {server name} amavis[7318]: Module Mail::DKIM::Signer  0.4
Jan 16 23:25:14 {server name} amavis[7318]: Module Mail::DKIM::Verifier 0.4
Jan 16 23:25:14 {server name} amavis[7318]: Module Mail::Header        2.07
Jan 16 23:25:14 {server name} amavis[7318]: Module Mail::Internet      2.07
Jan 16 23:25:14 {server name} amavis[7318]: Module Mail::SPF           v2.009
Jan 16 23:25:14 {server name} amavis[7318]: Module Mail::SpamAssassin  3.004001
Jan 16 23:25:14 {server name} amavis[7318]: Module Net::DNS            0.83
Jan 16 23:25:14 {server name} amavis[7318]: Module Net::LibIDN         0.12
Jan 16 23:25:14 {server name} amavis[7318]: Module Net::Patricia       1.22
Jan 16 23:25:14 {server name} amavis[7318]: Module Net::Server         2.008
Jan 16 23:25:14 {server name} amavis[7318]: Module NetAddr::IP         4.075
Jan 16 23:25:14 {server name} amavis[7318]: Module Scalar::Util        1.38
Jan 16 23:25:14 {server name} amavis[7318]: Module Socket              2.013
Jan 16 23:25:14 {server name} amavis[7318]: Module Socket6             0.25
Jan 16 23:25:14 {server name} amavis[7318]: Module Time::HiRes         1.9726
Jan 16 23:25:14 {server name} amavis[7318]: Module URI                 1.69
Jan 16 23:25:14 {server name} amavis[7318]: Module Unix::Syslog        1.1
Jan 16 23:25:14 {server name} amavis[7318]: Amavis::ZMQ code     NOT loaded
Jan 16 23:25:14 {server name} amavis[7318]: Amavis::DB code      loaded
Jan 16 23:25:14 {server name} amavis[7318]: SQL base code        loaded
Jan 16 23:25:14 {server name} amavis[7318]: SQL::Log code        loaded
Jan 16 23:25:14 {server name} amavis[7318]: SQL::Quarantine      loaded
Jan 16 23:25:14 {server name} amavis[7318]: Lookup::SQL code     loaded
Jan 16 23:25:14 {server name} amavis[7318]: Lookup::LDAP code    NOT loaded
Jan 16 23:25:14 {server name} amavis[7318]: AM.PDP-in proto code loaded
Jan 16 23:25:14 {server name} amavis[7318]: SMTP-in proto code   loaded
Jan 16 23:25:14 {server name} amavis[7318]: Courier proto code   NOT loaded
Jan 16 23:25:14 {server name} amavis[7318]: SMTP-out proto code  loaded
Jan 16 23:25:14 {server name} amavis[7318]: Pipe-out proto code  NOT loaded
Jan 16 23:25:14 {server name} amavis[7318]: BSMTP-out proto code NOT loaded
Jan 16 23:25:14 {server name} amavis[7318]: Local-out proto code NOT loaded
Jan 16 23:25:14 {server name} amavis[7318]: OS_Fingerprint code  NOT loaded
Jan 16 23:25:14 {server name} amavis[7318]: ANTI-VIRUS code      loaded
Jan 16 23:25:14 {server name} amavis[7318]: ANTI-SPAM code       loaded
Jan 16 23:25:14 {server name} amavis[7318]: ANTI-SPAM-EXT code   NOT loaded
Jan 16 23:25:14 {server name} amavis[7318]: ANTI-SPAM-C code     NOT loaded
Jan 16 23:25:14 {server name} amavis[7318]: ANTI-SPAM-SA code    loaded
Jan 16 23:25:14 {server name} amavis[7318]: Unpackers code       loaded
Jan 16 23:25:14 {server name} amavis[7318]: DKIM code            loaded
Jan 16 23:25:14 {server name} amavis[7318]: Tools code           NOT loaded
Jan 16 23:25:14 {server name} amavis[7318]: Found $file            at /usr/bin/file
Jan 16 23:25:14 {server name} amavis[7318]: No $altermime,         not using it
Jan 16 23:25:14 {server name} amavis[7318]: Internal decoder for .mail
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .Z    at /usr/bin/uncompress
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .gz   at /usr/bin/gzip -d
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .bz2  at /usr/local/bin/bzip2 -d
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .xz   at /usr/local/bin/xzdec
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .lzma at /usr/local/bin/lzmadec
Jan 16 23:25:14 {server name} amavis[7318]: No ext program for   .lrz, tried: lrzip -q -k -d -o -, lrzcat -q -k
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .lzo  at /usr/local/bin/lzop -d
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .lz4  at /usr/local/bin/lz4c -d
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .rpm  at /usr/local/bin/rpm2cpio
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .cpio at /bin/pax
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .tar  at /bin/pax
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .deb  at /usr/bin/ar
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .rar  at /usr/local/bin/7z
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .arj  at /usr/local/bin/7z
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .arc  at /usr/local/bin/arc
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .zoo  at /usr/local/bin/zoo
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .doc  at /usr/local/bin/ripole
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .cab  at /usr/local/bin/cabextract
Jan 16 23:25:14 {server name} amavis[7318]: No ext program for   .tnef, tried: tnef
Jan 16 23:25:14 {server name} amavis[7318]: Internal decoder for .tnef
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .zip  at /usr/local/bin/7za
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .kmz  at /usr/local/bin/7za
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .7z   at /usr/local/bin/7zr
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .jar  at /usr/local/bin/7z
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .swf  at /usr/local/bin/7z
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .lha  at /usr/local/bin/7z
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .iso  at /usr/local/bin/7z
Jan 16 23:25:14 {server name} amavis[7318]: Found decoder for    .exe  at /usr/local/bin/unrar; /usr/local/bin/lha
Jan 16 23:25:14 {server name} amavis[7318]: No decoder for       .lrz
Jan 16 23:25:14 {server name} amavis[7318]: Using primary internal av scanner code for ClamAV-clamd
Jan 16 23:25:14 {server name} amavis[7318]: Found secondary av scanner ClamAV-clamscan at /usr/local/bin/clamscan
Jan 16 23:25:14 {server name} amavis[7318]: Deleting db files  in /var/amavisd/db
Jan 16 23:25:14 {server name} amavis[7318]: Creating db in /var/amavisd/db/; BerkeleyDB 0.55, libdb 4.6
Jan 16 23:25:18 {server name} postfix[14263]: Postfix is running with backwards-compatible default settings
Jan 16 23:25:18 {server name} postfix[14263]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Jan 16 23:25:18 {server name} postfix[14263]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Jan 16 23:25:26 {server name} postfix/postfix-script[21391]: starting the Postfix mail system
Jan 16 23:25:26 {server name} postfix/master[15726]: /etc/postfix/master.cf: line 144: using backwards-compatible default setting chroot=y
Jan 16 23:25:26 {server name} postfix/master[15726]: /etc/postfix/master.cf: line 150: using backwards-compatible default setting chroot=y
Jan 16 23:25:26 {server name} postfix/master[15726]: daemon started -- version 3.0.2, configuration /etc/postfix
Jan 16 23:25:27 {server name} postfix/pickup[22865]: 1EF72BB68: uid=0 from=<root>
Jan 16 23:25:27 {server name} postfix/cleanup[10772]: 1EF72BB68: message-id=<20160117042527.1EF72BB68@[server_hostname].com>
Jan 16 23:25:28 {server name} postfix/qmgr[19983]: 1EF72BB68: from=<root@[server_hostname].com>, size=719, nrcpt=1 (queue active)
Jan 16 23:25:33 {server name} postfix/smtpd[18910]: connect from localhost[127.0.0.1]
Jan 16 23:25:33 {server name} postfix/smtpd[18910]: 3FBD4BB6A: client=localhost[127.0.0.1]
Jan 16 23:25:33 {server name} postfix/cleanup[10772]: 3FBD4BB6A: message-id=<20160117042527.1EF72BB68@[server_hostname].com>
Jan 16 23:25:33 {server name} postfix/smtpd[18910]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jan 16 23:25:33 {server name} postfix/qmgr[19983]: 3FBD4BB6A: from=<root@[server_hostname].com>, size=1223, nrcpt=1 (queue active)
Jan 16 23:25:33 {server name} amavis[20524]: (20524-01) Passed CLEAN {RelayedInbound}, [127.0.0.1] <root@[server_hostname].com> -> <root@[server_hostname].com>, Message-ID: <20160117042527.1EF72BB68@[server_hostname].com>, mail_id: DGq5SpBShYub, Hits: -0.001, size: 719, queued_as: 3FBD4BB6A, 4419 ms
Jan 16 23:25:33 {server name} postfix/smtp[14417]: 1EF72BB68: to=<root@[server_hostname].com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1469, delays=1464/0.68/0.45/4.3, 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 3FBD4BB6A)
Jan 16 23:25:33 {server name} postfix/qmgr[19983]: 1EF72BB68: removed
Jan 16 23:25:33 {server name} postfix/cleanup[10772]: CD8BCBB6B: message-id=<20160117042527.1EF72BB68@[server_hostname].com>
Jan 16 23:25:33 {server name} postfix/local[9960]: 3FBD4BB6A: to=<root@[server_hostname].com>, relay=local, delay=0.6, delays=0.03/0.45/0/0.12, dsn=2.0.0, status=sent (forwarded as CD8BCBB6B)
Jan 16 23:25:33 {server name} postfix/qmgr[19983]: CD8BCBB6B: from=<root@[server_hostname].com>, size=1367, nrcpt=1 (queue active)
Jan 16 23:25:33 {server name} postfix/qmgr[19983]: 3FBD4BB6A: removed
Jan 16 23:25:35 {server name} postfix/pipe[3379]: CD8BCBB6B: to=<postmaster@[mail_domain].com>, relay=dovecot, delay=1.7, delays=0.02/0.22/0/1.5, dsn=2.0.0, status=sent (delivered via dovecot service)
Jan 16 23:25:35 {server name} postfix/qmgr[19983]: CD8BCBB6B: removed
Jan 16 23:49:43 {server name} postfix/submission/smtpd[6163]: connect from unknown[200.200.200.1]
Jan 16 23:49:44 {server name} postfix/submission/smtpd[6163]: warning: TLS library problem: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:/usr/src/lib/libssl/ssl/../../libssl/src/ssl/s3_pkt.c:1133:SSL alert number 48:
Jan 16 23:49:44 {server name} postfix/submission/smtpd[6163]: lost connection after STARTTLS from unknown[200.200.200.1]
Jan 16 23:49:44 {server name} postfix/submission/smtpd[6163]: disconnect from unknown[200.200.200.1] ehlo=1 starttls=1 commands=2
Jan 16 23:50:06 {server name} postfix/submission/smtpd[6163]: connect from unknown[200.200.200.1]
Jan 16 23:50:09 {server name} postfix/submission/smtpd[6163]: 31277BB6C: client=unknown[200.200.200.1], sasl_method=PLAIN, sasl_username=xxxxx@[another_mail_domain].com
Jan 16 23:50:09 {server name} postfix/cleanup[30295]: 31277BB6C: message-id=<569B645E.9010102@[another_mail_domain].com>
Jan 16 23:50:09 {server name} postfix/qmgr[19983]: 31277BB6C: from=<xxxxx@[another_mail_domain].com>, size=789, nrcpt=1 (queue active)
Jan 16 23:50:13 {server name} postfix/smtpd[2671]: connect from localhost[127.0.0.1]
Jan 16 23:50:13 {server name} postfix/smtpd[2671]: B4552BB6D: client=localhost[127.0.0.1]
Jan 16 23:50:13 {server name} postfix/cleanup[30295]: B4552BB6D: message-id=<569B645E.9010102@[another_mail_domain].com>
Jan 16 23:50:13 {server name} postfix/smtpd[2671]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jan 16 23:50:13 {server name} postfix/qmgr[19983]: B4552BB6D: from=<xxxxx@[another_mail_domain].com>, size=1303, nrcpt=1 (queue active)
Jan 16 23:50:13 {server name} amavis[19211]: (19211-01) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [200.200.200.1]:34455 [200.200.200.1] <xxxxx@[another_mail_domain].com> -> <xxxxx@[mail_domain].com>, Queue-ID: 31277BB6C, Message-ID: <569B645E.9010102@[another_mail_domain].com>, mail_id: WfXsFHJIxkGk, Hits: 1.426, size: 789, queued_as: B4552BB6D, 3991 ms
Jan 16 23:50:14 {server name} postfix/smtp[21870]: 31277BB6C: to=<xxxxx@[mail_domain].com>, relay=127.0.0.1[127.0.0.1]:10026, delay=5.8, delays=1.2/0.34/0.21/4.1, 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 B4552BB6D)
Jan 16 23:50:14 {server name} postfix/qmgr[19983]: 31277BB6C: removed
Jan 16 23:50:15 {server name} postfix/pipe[13719]: B4552BB6D: to=<xxxxx@[mail_domain].com>, relay=dovecot, delay=1.7, delays=0.07/0.44/0/1.2, dsn=2.0.0, status=sent (delivered via dovecot service)
Jan 16 23:50:15 {server name} postfix/qmgr[19983]: B4552BB6D: removed
Jan 16 23:51:01 {server name} postfix/submission/smtpd[10753]: connect from unknown[200.200.200.1]
Jan 16 23:51:03 {server name} postfix/submission/smtpd[10753]: 81A37BB6C: client=unknown[200.200.200.1], sasl_method=PLAIN, sasl_username=xxxxx@[mail_domain].com
Jan 16 23:51:04 {server name} postfix/cleanup[30295]: 81A37BB6C: message-id=<569B6495.2000701@[mail_domain].com>
Jan 16 23:51:04 {server name} postfix/qmgr[19983]: 81A37BB6C: from=<xxxxx@[mail_domain].com>, size=754, nrcpt=1 (queue active)
Jan 16 23:51:05 {server name} postfix/smtpd[2671]: connect from localhost[127.0.0.1]
Jan 16 23:51:05 {server name} postfix/smtpd[2671]: 297ECBB6D: client=localhost[127.0.0.1]
Jan 16 23:51:05 {server name} postfix/cleanup[30295]: 297ECBB6D: message-id=<569B6495.2000701@[mail_domain].com>
Jan 16 23:51:05 {server name} postfix/smtpd[2671]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jan 16 23:51:05 {server name} postfix/qmgr[19983]: 297ECBB6D: from=<xxxxx@[mail_domain].com>, size=1924, nrcpt=1 (queue active)
Jan 16 23:51:05 {server name} amavis[20524]: (20524-02) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [200.200.200.1]:32875 [200.200.200.1] <xxxxx@[mail_domain].com> -> <xxxxx@[outside_mail_domain].com>, Queue-ID: 81A37BB6C, Message-ID: <569B6495.2000701@[mail_domain].com>, mail_id: xVlyEE89vVuC, Hits: 1.426, size: 754, queued_as: 297ECBB6D, dkim_new=dkim:[mail_domain].com, 1042 ms
Jan 16 23:51:05 {server name} postfix/smtp[21870]: 81A37BB6C: to=<xxxxx@[outside_mail_domain].com>, relay=127.0.0.1[127.0.0.1]:10026, delay=2.1, delays=0.95/0/0.05/1.1, 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 297ECBB6D)
Jan 16 23:51:05 {server name} postfix/qmgr[19983]: 81A37BB6C: removed
Jan 16 23:51:05 {server name} postfix/smtp[7805]: connect to gmail-smtp-in.l.google.com[2607:f8b0:4002:c0c::1b]:25: No route to host
Jan 16 23:51:06 {server name} postfix/smtp[7805]: 297ECBB6D: to=<xxxxx@[outside_mail_domain].com>, relay=gmail-smtp-in.l.google.com[74.125.138.27]:25, delay=1.4, delays=0.04/0.39/0.49/0.45, dsn=2.0.0, status=sent (250 2.0.0 OK 1453024412 186si2969032yba.17 - gsmtp)
Jan 16 23:51:06 {server name} postfix/qmgr[19983]: 297ECBB6D: removed
Jan 16 23:54:38 {server name} postfix[26739]: Postfix is running with backwards-compatible default settings
Jan 16 23:54:38 {server name} postfix[26739]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Jan 16 23:54:38 {server name} postfix[26739]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Jan 16 23:54:38 {server name} postfix/postfix-script[24593]: stopping the Postfix mail system
Jan 16 23:54:38 {server name} postfix/master[15726]: terminating on signal 15
Jan 16 23:54:45 {server name} postfix[13364]: Postfix is running with backwards-compatible default settings
Jan 16 23:54:45 {server name} postfix[13364]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Jan 16 23:54:45 {server name} postfix[13364]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Jan 16 23:54:50 {server name} postfix/postfix-script[6587]: starting the Postfix mail system
Jan 16 23:54:50 {server name} postfix/master[29817]: /etc/postfix/master.cf: line 144: using backwards-compatible default setting chroot=y
Jan 16 23:54:50 {server name} postfix/master[29817]: /etc/postfix/master.cf: line 150: using backwards-compatible default setting chroot=y
Jan 16 23:54:50 {server name} postfix/master[29817]: daemon started -- version 3.0.2, configuration /etc/postfix
Jan 16 23:54:58 {server name} postfix[195]: Postfix is running with backwards-compatible default settings
Jan 16 23:54:58 {server name} postfix[195]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Jan 16 23:54:58 {server name} postfix[195]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Jan 16 23:54:59 {server name} postfix/postfix-script[27883]: refreshing the Postfix mail system
Jan 16 23:54:59 {server name} postfix/master[29817]: reload -- version 3.0.2, configuration /etc/postfix
Jan 16 23:54:59 {server name} postfix/master[29817]: /etc/postfix/master.cf: line 144: using backwards-compatible default setting chroot=y
Jan 16 23:54:59 {server name} postfix/master[29817]: /etc/postfix/master.cf: line 150: using backwards-compatible default setting chroot=y
Jan 17 00:01:03 {server name} postfix/pickup[24803]: E8387BB6E: uid=0 from=<root>
Jan 17 00:01:04 {server name} postfix/cleanup[21940]: E8387BB6E: message-id=<20160117050103.E8387BB6E@[server_hostname].com>
Jan 17 00:01:04 {server name} postfix/qmgr[654]: E8387BB6E: from=<root@[server_hostname].com>, size=719, nrcpt=1 (queue active)
Jan 17 00:01:05 {server name} postfix/smtpd[26967]: connect from localhost[127.0.0.1]
Jan 17 00:01:05 {server name} postfix/smtpd[26967]: 79B5ABB6D: client=localhost[127.0.0.1]
Jan 17 00:01:05 {server name} postfix/cleanup[21940]: 79B5ABB6D: message-id=<20160117050103.E8387BB6E@[server_hostname].com>
Jan 17 00:01:05 {server name} postfix/smtpd[26967]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jan 17 00:01:05 {server name} postfix/qmgr[654]: 79B5ABB6D: from=<root@[server_hostname].com>, size=1223, nrcpt=1 (queue active)
Jan 17 00:01:05 {server name} amavis[19211]: (19211-02) Passed CLEAN {RelayedInbound}, [127.0.0.1] <root@[server_hostname].com> -> <root@[server_hostname].com>, Message-ID: <20160117050103.E8387BB6E@[server_hostname].com>, mail_id: ncYJILT5oJ93, Hits: -0.001, size: 719, queued_as: 79B5ABB6D, 987 ms
Jan 17 00:01:05 {server name} postfix/smtp[12849]: E8387BB6E: to=<root@[server_hostname].com>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.1, delays=0.63/0.36/0.06/1, 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 79B5ABB6D)
Jan 17 00:01:05 {server name} postfix/qmgr[654]: E8387BB6E: removed
Jan 17 00:01:05 {server name} postfix/cleanup[21940]: CD315BB6E: message-id=<20160117050103.E8387BB6E@[server_hostname].com>
Jan 17 00:01:05 {server name} postfix/qmgr[654]: CD315BB6E: from=<root@[server_hostname].com>, size=1367, nrcpt=1 (queue active)
Jan 17 00:01:05 {server name} postfix/local[32665]: 79B5ABB6D: to=<root@[server_hostname].com>, relay=local, delay=0.36, delays=0.04/0.25/0/0.07, dsn=2.0.0, status=sent (forwarded as CD315BB6E)
Jan 17 00:01:05 {server name} postfix/qmgr[654]: 79B5ABB6D: removed
Jan 17 00:01:06 {server name} postfix/pipe[14521]: CD315BB6E: to=<postmaster@[mail_domain].com>, relay=dovecot, delay=1, delays=0.01/0.12/0/0.89, dsn=2.0.0, status=sent (delivered via dovecot service)
Jan 17 00:01:06 {server name} postfix/qmgr[654]: CD315BB6E: removed
Jan 17 00:07:14 {server name} postfix/postscreen[1842]: cache btree:/var/postfix/postscreen_cache full cleanup: retained=0 dropped=0 entries
Jan 17 00:07:14 {server name} postfix/postscreen[1842]: CONNECT from [127.0.0.1]:25822 to [127.0.0.1]:25
Jan 17 00:07:20 {server name} postfix/postscreen[1842]: PASS NEW [127.0.0.1]:25822
Jan 17 00:07:20 {server name} postfix/smtpd[17780]: connect from localhost[127.0.0.1]
Jan 17 00:08:13 {server name} postfix/smtpd[17780]: disconnect from localhost[127.0.0.1] helo=2/3 quit=1 unknown=0/1 commands=3/5
Jan 17 00:11:34 {server name} postfix/anvil[10865]: statistics: max connection rate 1/60s for (smtpd:127.0.0.1) at Jan 17 00:07:21
Jan 17 00:11:34 {server name} postfix/anvil[10865]: statistics: max connection count 1 for (smtpd:127.0.0.1) at Jan 17 00:07:21
Jan 17 00:11:34 {server name} postfix/anvil[10865]: statistics: max cache size 1 at Jan 17 00:07:21
Jan 17 05:35:16 {server name} postfix/postqueue[21497]: fatal: usage: postqueue -f | postqueue -i queueid | postqueue -p | postqueue -s site
Jan 17 01:01:03 {server name} postfix/pickup[24803]: 544DCBB70: uid=0 from=<root>
Jan 17 01:01:03 {server name} postfix/cleanup[6155]: 544DCBB70: message-id=<20160117060103.544DCBB70@[server_hostname].com>
Jan 17 01:01:03 {server name} postfix/qmgr[654]: 544DCBB70: from=<root@[server_hostname].com>, size=719, nrcpt=1 (queue active)
Jan 17 01:01:04 {server name} postfix/smtpd[15011]: connect from localhost[127.0.0.1]
Jan 17 01:01:04 {server name} postfix/smtpd[15011]: B11D7BB6F: client=localhost[127.0.0.1]
Jan 17 01:01:04 {server name} postfix/cleanup[6155]: B11D7BB6F: message-id=<20160117060103.544DCBB70@[server_hostname].com>
Jan 17 01:01:04 {server name} postfix/smtpd[15011]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jan 17 01:01:04 {server name} postfix/qmgr[654]: B11D7BB6F: from=<root@[server_hostname].com>, size=1223, nrcpt=1 (queue active)
Jan 17 01:01:04 {server name} amavis[20524]: (20524-03) Passed CLEAN {RelayedInbound}, [127.0.0.1] <root@[server_hostname].com> -> <root@[server_hostname].com>, Message-ID: <20160117060103.544DCBB70@[server_hostname].com>, mail_id: ym9Hdf6Z0ykN, Hits: -0.001, size: 719, queued_as: B11D7BB6F, 952 ms
Jan 17 01:01:04 {server name} postfix/smtp[8866]: 544DCBB70: to=<root@[server_hostname].com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.9, delays=0.61/0.21/0.05/1, 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 B11D7BB6F)
Jan 17 01:01:04 {server name} postfix/qmgr[654]: 544DCBB70: removed
Jan 17 01:01:05 {server name} postfix/cleanup[6155]: 09C18BB70: message-id=<20160117060103.544DCBB70@[server_hostname].com>
Jan 17 01:01:05 {server name} postfix/qmgr[654]: 09C18BB70: from=<root@[server_hostname].com>, size=1367, nrcpt=1 (queue active)
Jan 17 01:01:05 {server name} postfix/local[5260]: B11D7BB6F: to=<root@[server_hostname].com>, relay=local, delay=0.33, delays=0.03/0.24/0/0.06, dsn=2.0.0, status=sent (forwarded as 09C18BB70)
Jan 17 01:01:05 {server name} postfix/qmgr[654]: B11D7BB6F: removed
Jan 17 01:01:05 {server name} postfix/pipe[28]: 09C18BB70: to=<postmaster@[mail_domain].com>, relay=dovecot, delay=0.92, delays=0.01/0.12/0/0.79, dsn=2.0.0, status=sent (delivered via dovecot service)
Jan 17 01:01:05 {server name} postfix/qmgr[654]: 09C18BB70: removed
Jan 17 02:01:05 {server name} postfix/pickup[25569]: 85A3CBB71: uid=0 from=<root>
Jan 17 02:01:05 {server name} postfix/cleanup[15577]: 85A3CBB71: message-id=<20160117070105.85A3CBB71@[server_hostname].com>
Jan 17 02:01:05 {server name} postfix/qmgr[654]: 85A3CBB71: from=<root@[server_hostname].com>, size=719, nrcpt=1 (queue active)
Jan 17 02:01:05 {server name} postfix/pickup[25569]: CE3CBBB6F: uid=0 from=<root>
Jan 17 02:01:05 {server name} postfix/cleanup[15577]: CE3CBBB6F: message-id=<20160117070105.CE3CBBB6F@[server_hostname].com>
Jan 17 02:01:05 {server name} postfix/qmgr[654]: CE3CBBB6F: from=<root@[server_hostname].com>, size=1389, nrcpt=1 (queue active)
Jan 17 02:01:08 {server name} postfix/smtpd[28165]: connect from localhost[127.0.0.1]
Jan 17 02:01:08 {server name} postfix/smtpd[28165]: 661D0BB70: client=localhost[127.0.0.1]
Jan 17 02:01:08 {server name} postfix/cleanup[15577]: 661D0BB70: message-id=<20160117070105.85A3CBB71@[server_hostname].com>
Jan 17 02:01:08 {server name} postfix/smtpd[28165]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jan 17 02:01:08 {server name} postfix/qmgr[654]: 661D0BB70: from=<root@[server_hostname].com>, size=1223, nrcpt=1 (queue active)
Jan 17 02:01:08 {server name} postfix/smtpd[28165]: connect from localhost[127.0.0.1]
Jan 17 02:01:09 {server name} postfix/cleanup[15577]: 02063BB72: message-id=<20160117070105.85A3CBB71@[server_hostname].com>
Jan 17 02:01:09 {server name} postfix/qmgr[654]: 02063BB72: from=<root@[server_hostname].com>, size=1367, nrcpt=1 (queue active)
Jan 17 02:01:09 {server name} postfix/local[17184]: 661D0BB70: to=<root@[server_hostname].com>, relay=local, delay=0.63, delays=0.08/0.28/0/0.27, dsn=2.0.0, status=sent (forwarded as 02063BB72)
Jan 17 02:01:09 {server name} postfix/qmgr[654]: 661D0BB70: removed
Jan 17 02:01:09 {server name} postfix/smtpd[28165]: 17A4CBB70: client=localhost[127.0.0.1]
Jan 17 02:01:09 {server name} amavis[19211]: (19211-03) Passed CLEAN {RelayedInbound}, [127.0.0.1] <root@[server_hostname].com> -> <root@[server_hostname].com>, Message-ID: <20160117070105.85A3CBB71@[server_hostname].com>, mail_id: LYFxpTQZuPwN, Hits: -0.001, size: 719, queued_as: 661D0BB70, 2973 ms
Jan 17 02:01:09 {server name} postfix/cleanup[15577]: 17A4CBB70: message-id=<20160117070105.CE3CBBB6F@[server_hostname].com>
Jan 17 02:01:09 {server name} postfix/smtp[26775]: 85A3CBB71: to=<root@[server_hostname].com>, relay=127.0.0.1[127.0.0.1]:10024, delay=4.7, delays=1.3/0.21/0.14/3, 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 661D0BB70)
Jan 17 02:01:09 {server name} postfix/qmgr[654]: 85A3CBB71: removed
Jan 17 02:01:09 {server name} postfix/qmgr[654]: 17A4CBB70: from=<root@[server_hostname].com>, size=1893, nrcpt=1 (queue active)
Jan 17 02:01:09 {server name} postfix/smtpd[28165]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jan 17 02:01:09 {server name} postfix/cleanup[15577]: 5CE29BB71: message-id=<20160117070105.CE3CBBB6F@[server_hostname].com>
Jan 17 02:01:09 {server name} postfix/local[17184]: 17A4CBB70: to=<root@[server_hostname].com>, relay=local, delay=0.32, delays=0.17/0.11/0/0.04, dsn=2.0.0, status=sent (forwarded as 5CE29BB71)
Jan 17 02:01:09 {server name} postfix/qmgr[654]: 5CE29BB71: from=<root@[server_hostname].com>, size=2037, nrcpt=1 (queue active)
Jan 17 02:01:09 {server name} postfix/qmgr[654]: 17A4CBB70: removed
Jan 17 02:01:10 {server name} amavis[20524]: (20524-04) Passed CLEAN {RelayedInbound}, [127.0.0.1] <root@[server_hostname].com> -> <root@[server_hostname].com>, Message-ID: <20160117070105.CE3CBBB6F@[server_hostname].com>, mail_id: jEvGoJ0z7O-m, Hits: -0.001, size: 1389, queued_as: 17A4CBB70, 3341 ms
Jan 17 02:01:10 {server name} postfix/smtp[1179]: CE3CBBB6F: to=<root@[server_hostname].com>, relay=127.0.0.1[127.0.0.1]:10024, delay=5.4, delays=0.95/0.72/0.11/3.6, 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 17A4CBB70)
Jan 17 02:01:10 {server name} postfix/qmgr[654]: CE3CBBB6F: removed
Jan 17 02:01:11 {server name} postfix/pipe[27852]: 02063BB72: to=<postmaster@[mail_domain].com>, relay=dovecot, delay=2.4, delays=0.04/0.51/0/1.8, dsn=2.0.0, status=sent (delivered via dovecot service)
Jan 17 02:01:11 {server name} postfix/qmgr[654]: 02063BB72: removed
Jan 17 02:01:11 {server name} postfix/pipe[15328]: 5CE29BB71: to=<postmaster@[mail_domain].com>, relay=dovecot, delay=2.1, delays=0.04/0.6/0/1.5, dsn=2.0.0, status=sent (delivered via dovecot service)
Jan 17 02:01:11 {server name} postfix/qmgr[654]: 5CE29BB71: removed
Jan 17 02:52:50 {server name} postfix[3046]: Postfix is running with backwards-compatible default settings
Jan 17 02:52:50 {server name} postfix[3046]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Jan 17 02:52:50 {server name} postfix[3046]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Jan 17 02:52:51 {server name} postfix/postfix-script[7664]: the Postfix mail system is running: PID: 29817
#


*****

From iredapd.log:

# cat /var/log/iredapd/iredapd.log                                             
2016-01-16 23:25:17 INFO Starting iRedAPD (version: 1.7.0, backend: mysql), listening on 127.0.0.1:7777.
2016-01-16 23:25:17 INFO Log rotate type: time, interval: W6, backup copies: 12.
2016-01-16 23:25:17 INFO Loading plugin: reject_null_sender
2016-01-16 23:25:17 INFO Loading plugin: greylisting
2016-01-16 23:25:17 INFO Loading plugin: amavisd_wblist
2016-01-16 23:25:17 INFO Loading plugin: throttle
2016-01-16 23:25:17 INFO Loading plugin: sql_alias_access_policy
2016-01-16 23:50:08 INFO [200.200.200.1] RCPT, => xxxx@[another_mail_domain].com -> xxxx@[mail_domain].com, DUNNO
2016-01-16 23:50:09 INFO [200.200.200.1] END-OF-MESSAGE, => xxxx@[another_mail_domain].com -> xxxx@[mail_domain].com, DUNNO
2016-01-16 23:51:03 INFO [200.200.200.1] RCPT, => xxxx@[mail_domain].com -> xxxx@[mail_domain].com, DUNNO
2016-01-16 23:51:04 INFO [200.200.200.1] END-OF-MESSAGE, => xxxx@[mail_domain].com -> xxxx@[mail_domain].com, DUNNO
*****

Hope this is helpful.

3

Re: Can send but cannot receive emails. OpenBSD5.8 x64

*) Cannot find useful log in attached maillog.
*) If you send email from your own Gmail/Hotmail/Yahoo/... account to your iRedMail server, did you receive any bounce message? If yes, please show us FULL message of this bounce message. We need this for troubleshooting.

4

Re: Can send but cannot receive emails. OpenBSD5.8 x64

Thank you for your quick reply. I've posted the message from a gmail account below:

***

This is an automatically generated Delivery Status Notification

THIS IS A WARNING MESSAGE ONLY.

YOU DO NOT NEED TO RESEND YOUR MESSAGE.

Delivery to the following recipient has been delayed:

     xxxx@[mail_domain].com

Message will be retried for 2 more day(s)

Technical details of temporary failure:
The recipient server did not accept our requests to connect. Learn more at https://support.google.com/mail/answer/7720
[(10) [server_hostname].com. [xxx.xxx.xxx.xxx]:25: socket error]

----- Original message -----

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        bh=M5slYKYuT2eGrD09nbaP3xhtWES8ZsslSqV0J5FUXpo=;
        b=FZAFhMxQwlO+oZrhVoFO5gNuCtnR7FB1JRDI0su9V1M0wYIk6WTKAtHrcaYQluCpsc
         Sn3oV4ZSlnSiF5rBwGQsFhEUl0cVPUGFyAzDWim0LWniX0/3fhJ5b/WWJ+qkwIlPo/hl
         vR0REXHZfONqZRr31kHUNCfpoFg0FRr7qN89B26n2lpeYrMvHH/OwCxTmSEMgLrqK3ko
         iyUo7ZNYbEL9r2NL5u5kdQhbnPO5e1tAuXQRQRb8IL2O2VGT/ft2ubbx+GhtqWBHrBia
         WQBYZQBMq5pdi7MZ3KCjdEvxeN2nE6PRJ1hdMHoFTRjx0YmMakblXF8EacHA107M7gzL
         gRxA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:content-type;
        bh=M5slYKYuT2eGrD09nbaP3xhtWES8ZsslSqV0J5FUXpo=;
        b=MXecAuO4oWCCk7/MBIoOZ+CwnEVdWTzTKt8o0HPhfcIrND5RuBuH1gOEs8/Usez3kT
         V3BJq+EoQAAKSvg1tJa7eEdiXM3MEq/UamA2KqZ5xsngV0/mLLyI28RWt/IEJuLlNAmL
         RfBPVzL6pBgkuQDDHSpv4fp+Rc/9HzNpOwNrY+U9V6yZbfEW5z+B8u0+2zOuZE5HSKBM
         27jIg5JaAS+vDqkV4KUg25yrFCQk/ifEGyHAojQeQq3Ew7HXGGObCpupsZkGNBKfYK7o
         6VlWayXDuYq2jA9JyOH7hd2KbeXI/TsNFciHyhztkooyrxKwzezefL6/TYFBmW/2qv+J
         WKEA==
X-Gm-Message-State: ALoCoQkMay2b/M9vD6OjsyN9bkAM9P/7u8d6mWXizZjXbuRwAtGyVHp/vsUDXHS2Vr7/oxkgWsxlVHacn4pNGeFvq+oHdz9o3A==
MIME-Version: 1.0
X-Received: by 10.107.11.68 with SMTP id v65mr17053776ioi.188.1453024511982;
Sun, 17 Jan 2016 01:55:11 -0800 (PST)
Received: by 10.36.133.11 with HTTP; Sun, 17 Jan 2016 01:55:11 -0800 (PST)
In-Reply-To: <569B6495.2000701@[mail_domain].com>
References: <569A54BB.5070108@[mail_domain].com>
        <569B6495.2000701@[mail_domain].com>
Date: Sun, 17 Jan 2016 04:55:11 -0500
Message-ID: <CAPni4e5WkBe3f5v22vOQX7StUFb2PrkFup-Mj9O_FAjKEPywrA@mail.gmail.com>
Subject: Re: testtest2
From: LHallman <xxxx@[mail_domain].com>
To: LHallman <xxxx@[mail_domain].com>
Content-Type: multipart/alternative; boundary=001a113fc3cee300fc052984a1a3

***

It appears that port 25 is not accepting connections. I have verified that port 25 is open and I was able to telnet port 25 from outside of my network but no response.

***

$ telnet [mail_domain].com 25
Trying [xxx.xxx.xxx.xxx]...
Connected to [mail_domain].com.
Escape character is '^]'.
ehlo [mail_domain].com  ...no response
auth login  ...no response
^C^Cquit
quit
^C^C^CConnection closed by foreign host.
$

5

Re: Can send but cannot receive emails. OpenBSD5.8 x64

I then attempted to telnet from the server's console:

***
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 [server_hostname] ESMTP Postfix
ehlo [mail_domain].com
250-[server_hostname]
250-PIPELINING
250-SIZE 15728640
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
auth login
503 5.5.1 Error: authentication not enabled
quit
221 2.0.0 Bye
Connection closed by foreign host.
#

6

Re: Can send but cannot receive emails. OpenBSD5.8 x64

Check your firewall rules on OpenBSD and network devices/routers, make sure port 25 is accessible from external network.

7 (edited by lhallman 2016-01-19 00:45:15)

Re: Can send but cannot receive emails. OpenBSD5.8 x64

While I can telnet port 25 from the server's console with positive results. I cannot telnet from another machine on the same local network hmm

$ telnet 200.200.200.2 25   
Trying 200.200.200.2...
$
(local network is 200.200.200.0/24)
Strangely, I can reach it from outside the network through the gateway firewall.

* Long story short, this install on openBSD 5.8 was a fresh install. I recently lost the previous installation. The older recent version of iredmail on openBSD 5.7 which worked flawlessly before using the same ports.

I am using the default pf.conf that was built during the install with the following:

***

# Basic PF rules for mail server.

mail_services="{www, https, submission, imap, imaps, pop3, pop3s, ssh}"

#table <spamd-white> persist
#table <nospamd> persist file "/etc/mail/nospamd"
#table <fail2ban> persist

# Options
set block-policy drop
set skip on lo

# Block all
block log all

# Fail2ban
#block in quick on egress proto tcp from <fail2ban> to any

pass out

# rules for spamd(8)
#pass in on egress proto tcp from any to any port smtp \
#    divert-to 127.0.0.1 port spamd
#pass in on egress proto tcp from <nospamd> to any port smtp
#pass in log on egress proto tcp from <spamd-white> to any port smtp

# Access to other mail services
pass in on egress proto tcp from any to any port $mail_services

***

This is the current rules of pf.conf:

***
# pfctl -sr
block drop log all
pass out all flags S/SA
pass in on egress proto tcp from any to any port = 80 flags S/SA
pass in on egress proto tcp from any to any port = 443 flags S/SA
pass in on egress proto tcp from any to any port = 587 flags S/SA
pass in on egress proto tcp from any to any port = 143 flags S/SA
pass in on egress proto tcp from any to any port = 993 flags S/SA
pass in on egress proto tcp from any to any port = 110 flags S/SA
pass in on egress proto tcp from any to any port = 995 flags S/SA
pass in on egress proto tcp from any to any port = 22 flags S/SA
#
***

The current state of pf.conf:

# pfctl -ss
all tcp 200.200.200.2:22 <- 200.200.200.119:44995       ESTABLISHED:ESTABLISHED
all tcp 200.200.200.2:110 <- 200.200.200.1:11243       FIN_WAIT_2:FIN_WAIT_2
all tcp 200.200.200.2:110 <- 200.200.200.1:53483       FIN_WAIT_2:FIN_WAIT_2
all tcp 200.200.200.2:110 <- 200.200.200.1:33000       FIN_WAIT_2:FIN_WAIT_2
all tcp 200.200.200.2:110 <- 200.200.200.1:16317       FIN_WAIT_2:FIN_WAIT_2
all tcp 200.200.200.2:110 <- 200.200.200.1:34884       FIN_WAIT_2:FIN_WAIT_2
all tcp 200.200.200.2:110 <- 200.200.200.1:19157       TIME_WAIT:TIME_WAIT
all tcp 200.200.200.2:110 <- 200.200.200.1:25959       FIN_WAIT_2:FIN_WAIT_2
#

Looks like port 25 is not in the rule table.
Added SMTPS to Mail_Services= in pf.conf

Now I'm seeing hits to port 25:

# pfctl -ss             
all tcp 200.200.200.2:22 <- 200.200.200.119:44995       ESTABLISHED:ESTABLISHED
all udp 200.200.200.2:27410 -> 204.2.134.163:123       MULTIPLE:MULTIPLE
all tcp 200.200.200.2:110 <- 200.200.200.1:59864       FIN_WAIT_2:FIN_WAIT_2
all tcp 200.200.200.2:110 <- 200.200.200.1:46401       FIN_WAIT_2:FIN_WAIT_2
all tcp 200.200.200.2:25 <- 198.2.136.160:48463       TIME_WAIT:TIME_WAIT   < possible spammer
all tcp 200.200.200.2:110 <- 200.200.200.1:48698       FIN_WAIT_2:FIN_WAIT_2
all tcp 200.200.200.2:110 <- 200.200.200.1:17348       FIN_WAIT_2:FIN_WAIT_2
all tcp 200.200.200.2:110 <- 200.200.200.1:62948       FIN_WAIT_2:FIN_WAIT_2
all tcp 200.200.200.2:110 <- 200.200.200.1:51622       FIN_WAIT_2:FIN_WAIT_2
all tcp 200.200.200.2:25 <- 199.115.102.82:43963       TIME_WAIT:TIME_WAIT   
all tcp 200.200.200.2:25 <- 199.122.125.181:33015       TIME_WAIT:TIME_WAIT 
#

Was port 25 excluded by default? I remember in the previous version of iredmail, incoming to port 25 was redirected to spamd where I could see the greylist with 'spamdb -a' but that doesn't seem to be present anymore. I there anywhere I can find documentation of how to manage greylisting? What I've found so far was quite cryptic to me. No real examples as far as I know unless I was looking for the wrong thing.

I changed the pf.conf now to the following only:

***
mail_services="{www, https, submission, imap, imaps, pop3, pop3s, ssh smtp smtps}"
***

And get the following:

***
# pfctl -sr             
block drop log all
pass out all flags S/SA
pass in on egress proto tcp from any to any port = 80 flags S/SA
pass in on egress proto tcp from any to any port = 443 flags S/SA
pass in on egress proto tcp from any to any port = 587 flags S/SA
pass in on egress proto tcp from any to any port = 143 flags S/SA
pass in on egress proto tcp from any to any port = 993 flags S/SA
pass in on egress proto tcp from any to any port = 110 flags S/SA
pass in on egress proto tcp from any to any port = 995 flags S/SA
pass in on egress proto tcp from any to any port = 22 flags S/SA
pass in on egress proto tcp from any to any port = 25 flags S/SA
pass in on egress proto tcp from any to any port = 465 flags S/SA
#
***
Is this correct or is port 25 incoming need to be redirected to the greylist port (?) ?

8

Re: Can send but cannot receive emails. OpenBSD5.8 x64

Oops, it turns out it's a bug in the sample pf rule file shipped by iRedMail-0.9.3, it doesn't enable port 25 after we removed spamd(8).

Please add 'smtp' in `mail_services=`, then reload pf rule and try again.

9

Re: Can send but cannot receive emails. OpenBSD5.8 x64

Already did in previous post. Mail is incoming now. Thanks A Million! But do I need to redirect port 25 to another port for greylisting or leave as is?

10

Re: Can send but cannot receive emails. OpenBSD5.8 x64

lhallman wrote:

But do I need to redirect port 25 to another port for greylisting or leave as is?

"leave as is".

Redirecting is required by spamd.