1

Topic: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: FreeBSD 10.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
********************************************************************
* Start iRedMail Configurations
********************************************************************
[ INFO ] Create self-signed SSL certification files (2048 bits).
[ INFO ] Generate a strong, unique Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system account: vmail, iredadmin, iredapd.
[ INFO ] Configure Apache web server.
[ INFO ] Configure PHP.
[ INFO ] Configure MySQL database server.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[ INFO ] Setup daily cron job to backup SQL databases with /var/vmail/backup/backup_mysql.sh
[ INFO ] Configure Postfix (Message Transfer Agent).
[ INFO ] Configure Dovecot (pop3/imap/managesieve server).
[ INFO ] Configure ClamAV (anti-virus toolkit).
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[ INFO ] Configure SpamAssassin (content-based spam filter).
[ INFO ] Configure iRedAPD (postfix policy daemon).
[ INFO ] Configure iRedAdmin (official web-based admin panel).
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[ INFO ] Configure Roundcube webmail.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[ INFO ] Configure Awstats (logfile analyzer for mail and web server).

*************************************************************************
* iRedMail-0.9.2 installation and configuration complete.
*************************************************************************

[ INFO ] Updating SpamAssassin rules (sa-update), please wait ...
[ INFO ] Compiling SpamAssassin rulesets (sa-compile), please wait ...
[ INFO ] Updating ClamAV database (freshclam), please wait ...
ClamAV update process started at Sun Aug 30 17:26:02 2015
connect_error: getsockopt(SO_ERROR): fd=4 error=61: Connection refused
Can't connect to port 80 of host database.clamav.net (IP: 213.133.110.235)
Trying host database.clamav.net (147.229.3.144)...
Downloading main.cvd [100%]
main.cvd updated (version: 55, sigs: 2424225, f-level: 60, builder: neo)
Downloading daily.cvd [100%]
daily.cvd updated (version: 20856, sigs: 1552885, f-level: 63, builder: neo)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 268, sigs: 47, f-level: 63, builder: anvilleg)
Database updated (3977157 signatures) from database.clamav.net (IP: 147.229.3.144)
WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.sock: No such file or directory
********************************************************************
* URLs of installed web applications:
*
* - Roundcube webmail: httpS://test.ua/mail/
*
* - Web admin panel (iRedAdmin): httpS://test.ua/iredadmin/
*
* You can login to above links with below credential:
*
* - Username: postmaster@test.km
* - Password: 123
*
*
********************************************************************
* Congratulations, mail server setup completed successfully. Please
* read below file for more information:
*
*   - /root/iRedMail/iRedMail.tips
*
* And it's sent to your mail account postmaster@test.km.
*
********************* WARNING **************************************
*
* Rebooting your system is required to enable mail services.
*
********************************************************************

----

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

2

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

/var/db/mysql/test.ua.err

150830 17:28:01 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
2015-08-30 17:28:02 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-08-30 17:28:02 0 [Note] /usr/local/libexec/mysqld (mysqld 5.6.26) starting as process 1020 ...
2015-08-30 17:28:02 1020 [Note] Plugin 'FEDERATED' is disabled.
/usr/local/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13 - Permission denied)
2015-08-30 17:28:02 1020 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2015-08-30 17:28:02 1020 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-08-30 17:28:02 1020 [Note] InnoDB: The InnoDB memory heap is disabled
2015-08-30 17:28:02 1020 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-08-30 17:28:02 1020 [Note] InnoDB: Memory barrier is not used
2015-08-30 17:28:02 1020 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-08-30 17:28:02 1020 [Note] InnoDB: Using CPU crc32 instructions
2015-08-30 17:28:02 1020 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-08-30 17:28:02 1020 [Note] InnoDB: Completed initialization of buffer pool
2015-08-30 17:28:02 1020 [Note] InnoDB: Highest supported file format is Barracuda.
2015-08-30 17:28:02 1020 [Note] InnoDB: 128 rollback segment(s) are active.
2015-08-30 17:28:02 1020 [Note] InnoDB: Waiting for purge to start
2015-08-30 17:28:02 1020 [Note] InnoDB: 5.6.26 started; log sequence number 1600607
2015-08-30 17:28:02 1020 [ERROR] /usr/local/libexec/mysqld: unknown variable 'default-character-set=utf8'
2015-08-30 17:28:02 1020 [ERROR] Aborting

2015-08-30 17:28:02 1020 [Note] Binlog end
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'partition'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'ARCHIVE'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_METRICS'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_CMPMEM'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_CMP'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_LOCKS'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'INNODB_TRX'
2015-08-30 17:28:02 1020 [Note] Shutting down plugin 'InnoDB'
2015-08-30 17:28:02 1020 [Note] InnoDB: FTS optimize thread exiting.
2015-08-30 17:28:02 1020 [Note] InnoDB: Starting shutdown...
2015-08-30 17:28:04 1020 [Note] InnoDB: Shutdown completed; log sequence number 1600617
2015-08-30 17:28:04 1020 [Note] Shutting down plugin 'BLACKHOLE'
2015-08-30 17:28:04 1020 [Note] Shutting down plugin 'MyISAM'
2015-08-30 17:28:04 1020 [Note] Shutting down plugin 'MEMORY'
2015-08-30 17:28:04 1020 [Note] Shutting down plugin 'CSV'
2015-08-30 17:28:04 1020 [Note] Shutting down plugin 'MRG_MYISAM'
2015-08-30 17:28:04 1020 [Note] Shutting down plugin 'sha256_password'
2015-08-30 17:28:04 1020 [Note] Shutting down plugin 'mysql_old_password'
2015-08-30 17:28:04 1020 [Note] Shutting down plugin 'mysql_native_password'
2015-08-30 17:28:04 1020 [Note] Shutting down plugin 'binlog'
2015-08-30 17:28:04 1020 [Note] /usr/local/libexec/mysqld: Shutdown complete

150830 17:28:04 mysqld_safe mysqld from pid file /var/db/mysql/test.ua.pid ended

3

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

*) Is this a fresh/clean FreeBSD OS?
*) Do you install iRedMail inside a Jail?

3m wrote:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

mysql socket should be created in another directory, not /tmp. not sure why your server has this one.

4

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

Hi ZhangHuangbin!

1. All clean, settings and paths have not changed
2. install iRedMai without Jail
3. It may issue a new FreeBSD 10.2 ?

5

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

No clue yet. Any error in file iRedMail-0.9.2/runtime/install.log?

3m wrote:

3. It may issue a new FreeBSD 10.2 ?

Downloading ISO image, will give it a try.

6

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

iRedMail-0.9.2/runtime/install.log?

[ INFO ] Create required system account: vmail, iredadmin, iredapd.
+ < DEBUG > Create HOME folder for vmail user.
+ < DEBUG > Create system account: vmail:vmail (2000:2000).
rm: "." and ".." may not be removed
+ < DEBUG > Create directory to store user sieve rule files: /var/vmail/sieve.
+ < DEBUG > Create system account: iredadmin:iredadmin (2001:2001)
+ < DEBUG > Create system account: iredapd:iredapd (2002:2002).
[ INFO ] Configure Apache web server.
+ < DEBUG > Basic configurations.
+ < DEBUG > Set correct SSL Cert/Key file location.
+ < DEBUG > Enable Apache modules.
+ < DEBUG > Configure Apache.
accf_http_load="YES"
+ < DEBUG > Add setting in /etc/rc.conf: apache24_enable='YES'
+ < DEBUG > Add setting in /etc/rc.conf: htcacheclean_enable='NO'
[ INFO ] Configure PHP.
+ < DEBUG > Hide PHP Version in Apache from remote users requests: /usr/local/etc/php.ini.
+ < DEBUG > Increase 'memory_limit' to 256M: /usr/local/etc/php.ini.
+ < DEBUG > Increase 'upload_max_filesize', 'post_max_size' to 10/12M: /usr/local/etc/php.ini.
+ < DEBUG > Disable php extension: suhosin. /usr/local/etc/php.ini.
[ INFO ] Configure MySQL database server.
+ < DEBUG > Generate temporary defauts file for MySQL client option --defaults-file: /root/iRedMail/.mysql-root-defaults-file.
+ < DEBUG > Starting MySQL.
+ < DEBUG > Add setting in /etc/rc.conf: mysql_enable='YES'
+ < DEBUG > Copy sample MySQL config file: /root/iRedMail/samples/mysql/my.cnf -> /var/db/mysql/my.cnf.
innodb_file_per_table
mysql not running? (check /var/db/mysql/test.ua.pid).
/usr/local/etc/rc.d/mysql-server: WARNING: failed precmd routine for mysql
+ < DEBUG > Sleep 10 seconds for MySQL daemon initialization ...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
+ < DEBUG > Initialize MySQL database.
+ < DEBUG > Generating SQL template for postfix virtual hosts: /root/iRedMail/runtime/mysql_vmail.sql.
+ < DEBUG > Import postfix virtual hosts/users: /root/iRedMail/runtime/mysql_vmail.sql.
[ INFO ] Setup daily cron job to backup SQL databases with /var/vmail/backup/backup_mysql.sh
[ INFO ] Configure Postfix (Message Transfer Agent).
+ < DEBUG > Enable chroot.
+ < DEBUG > Copy: /etc/{hosts,resolv.conf,localtime,services} -> /var/spool/postfix/etc/
+ < DEBUG > Add setting in /etc/rc.conf: postfix_enable='YES'
+ < DEBUG > Add setting in /etc/rc.conf: sendmail_enable='NO'
+ < DEBUG > Add setting in /etc/rc.conf: sendmail_submit_enable='NO'
+ < DEBUG > Add setting in /etc/rc.conf: sendmail_outbound_enable='NO'
+ < DEBUG > Add setting in /etc/rc.conf: sendmail_msp_queue_enable='NO'
+ < DEBUG > Add setting in /etc/rc.conf: daily_clean_hoststat_enable='NO'
+ < DEBUG > Add setting in /etc/rc.conf: daily_status_mail_rejects_enable='NO'
+ < DEBUG > Add setting in /etc/rc.conf: daily_status_include_submit_mailq='NO'
+ < DEBUG > Add setting in /etc/rc.conf: daily_submit_queuerun='NO'
+ < DEBUG > Configure Postfix for MySQL lookup.
+ < DEBUG > Set file permission: Owner/Group -> postfix/postfix, Mode -> 0640.
+ < DEBUG > Configure SMTP SASL authentication.
+ < DEBUG > Enable TLS/SSL support in Postfix.
+ < DEBUG > Enable postscreen service.
* [BACKUP] /usr/local/etc/postfix/main.cf -> /usr/local/etc/postfix/main.cf.2015.08.30.17.25.22.
* [BACKUP] /usr/local/etc/postfix/master.cf -> /usr/local/etc/postfix/master.cf.2015.08.30.17.25.22.
* Comment out 'smtp inet ... smtpd' service in /usr/local/etc/postfix/master.cf.
* Uncomment the new 'smtpd pass ... smtpd' service in /usr/local/etc/postfix/master.cf.
* Uncomment the new smtp inet ... postscreen service in /usr/local/etc/postfix/master.cf.
* Uncomment the new 'tlsproxy unix ... tlsproxy' service in /usr/local/etc/postfix/master.cf.
* Uncomment the new 'dnsblog unix ... dnsblog' service in /usr/local/etc/postfix/master.cf.
* Update /usr/local/etc/postfix/main.cf to enable postscreen.
* Create /var/spool/postfix//var/db/postfix/postscreen_cache.db.
* Reloading postfix service to read the new configuration.
* postscreen is now enabled.
[ INFO ] Configure Dovecot (pop3/imap/managesieve server).
+ < DEBUG > Configure dovecot: /usr/local/etc/dovecot/dovecot.conf.
+ < DEBUG > Copy global sieve filter rule file: /var/vmail/sieve/dovecot.sieve.
+ < DEBUG > Create dovecot log file: /var/log/dovecot.log.
+ < DEBUG > Create dovecot log file: /var/log/dovecot-sieve.log.
+ < DEBUG > Create dovecot log file: /var/log/dovecot-lmtp.log.
+ < DEBUG > Enable dovecot SASL support in postfix: /usr/local/etc/postfix/main.cf.
+ < DEBUG > Create directory for Dovecot plugin: Expire.
+ < DEBUG > Setting logrotate for dovecot log file.
+ < DEBUG > Add setting in /etc/rc.conf: dovecot_enable='YES'
[ INFO ] Configure ClamAV (anti-virus toolkit).
+ < DEBUG > Configure ClamAV: /usr/local/etc/clamd.conf.
+ < DEBUG > Configure freshclam: /usr/local/etc/freshclam.conf.
+ < DEBUG > Add clamav user to amavid group.
+ < DEBUG > Add setting in /etc/rc.conf: clamav_clamd_enable='YES'
+ < DEBUG > Add setting in /etc/rc.conf: clamav_freshclam_enable='YES'
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
+ < DEBUG > Configure amavisd-new: /usr/local/etc/amavisd.conf.
+ < DEBUG > Generate DKIM pem files: /var/lib/dkim/test.km.pem.
+ < DEBUG > Setting cron job for vmail user to delete virus mail per month.
+ < DEBUG > Import Amavisd database and privileges.
+ < DEBUG > Add setting in /etc/rc.conf: amavisd_enable='YES'
+ < DEBUG > Add setting in /etc/rc.conf: amavisd_pidfile='/var/amavis/amavisd.pid'
+ < DEBUG > Add setting in /etc/rc.conf: amavis_milter_enable='NO'
+ < DEBUG > Add setting in /etc/rc.conf: amavis_p0fanalyzer_enable='NO'
[ INFO ] Configure SpamAssassin (content-based spam filter).
+ < DEBUG > Copy sample SpamAssassin config file: /root/iRedMail/samples/spamassassin/local.cf -> /usr/local/etc/mail/spamassassin/local.cf.
+ < DEBUG > Enable crontabs for SpamAssassin update.
+ < DEBUG > Compile SpamAssassin ruleset into native code.
Aug 30 17:25:30.287 [9579] info: generic: base extraction starting. this can take a while...
cd /
rm -rf /tmp/.spamassassin9579GTqsyFtmp
[ INFO ] Configure iRedAPD (postfix policy daemon).
+ < DEBUG > Extracting: iRedAPD-1.6.0.tar.bz2 -> /opt
+ < DEBUG > Configure iRedAPD.
+ < DEBUG > Make iredapd start after system startup.
+ < DEBUG > Add setting in /etc/rc.conf: iredapd_enable='YES'
[ INFO ] Configure iRedAdmin (official web-based admin panel).
+ < DEBUG > Extracting: iRedAdmin-0.4.2.tar.bz2 -> /usr/local/www
+ < DEBUG > Set correct permission for iRedAdmin: /usr/local/www/iRedAdmin-0.4.2.
+ < DEBUG > Create directory alias for iRedAdmin.
+ < DEBUG > Import iredadmin database template.
+ < DEBUG > Configure iRedAdmin.
+ < DEBUG > Configure general settings.
+ < DEBUG > Configure iredadmin database related settings.
+ < DEBUG > Configure SQL mail accounts related settings.
+ < DEBUG > Configure Amavisd related settings.
[ INFO ] Configure Roundcube webmail.
+ < DEBUG > Create directory alias for Roundcubemail.
+ < DEBUG > Import SQL database and privileges for Roundcubemail.
+ < DEBUG > Configure database for Roundcubemail: /usr/local/www/roundcube/config/*.
+ < DEBUG > Config plugin: managesieve.
+ < DEBUG > Enable and config plugin: password.
[ INFO ] Configure Awstats (logfile analyzer for mail and web server).
+ < DEBUG > Generate apache config file for awstats: /usr/local/etc/apache24/Includes/awstats.conf.
+ < DEBUG > Setup user auth for awstats: /usr/local/etc/apache24/Includes/awstats.conf.
+ < DEBUG > Config awstats to analyze apache web access log: /usr/local/www/awstats/cgi-bin/awstats.web.conf.
+ < DEBUG > Config awstats to analyze postfix mail log: /usr/local/www/awstats/cgi-bin/awstats.smtp.conf.
+ < DEBUG > Setting cronjob for awstats.
+ < DEBUG > Mail sensitive administration info to .
+ < DEBUG > Set file permission to 0600: /var/cron/tabs/root.
+ < DEBUG > Set file permission to 0600: /var/cron/tabs/vscan.
[ INFO ] Updating SpamAssassin rules (sa-update), please wait ...
[ INFO ] Compiling SpamAssassin rulesets (sa-compile), please wait ...
Aug 30 17:25:39.719 [9828] info: generic: base extraction starting. this can take a while...
Aug 30 17:25:39.719 [9828] info: generic: extracting from rules of type body_0

  0% [                                           ]   0.00 rules/sec --m--s LEFT
zoom: rule __PILL_PRICE_01 will loop on SpamAssassin older than 3.3.2 running under Perl 5.12 or older, Bug 6558

  6% [==                                         ]  70.56 rules/sec 00m06s LEFT
zoom: rule __FOR_SALE_OBO will loop on SpamAssassin older than 3.3.2 running under Perl 5.12 or older, Bug 6558

13% [=====                                      ]  69.28 rules/sec 00m06s LEFT
19% [========                                   ]  64.08 rules/sec 00m06s LEFT
zoom: rule __FOR_SALE_LTP will loop on SpamAssassin older than 3.3.2 running under Perl 5.12 or older, Bug 6558

25% [===========                                ]  65.04 rules/sec 00m05s LEFT
32% [=============                              ]  67.15 rules/sec 00m05s LEFT
zoom: rule __LARGE_PERCENT_AFTER will loop on SpamAssassin older than 3.3.2 running under Perl 5.12 or older, Bug 6558

38% [================                           ]  66.10 rules/sec 00m04s LEFT
zoom: rule __FOR_SALE_PRC_1K will loop on SpamAssassin older than 3.3.2 running under Perl 5.12 or older, Bug 6558

45% [===================                        ]  66.86 rules/sec 00m04s LEFT
51% [======================                     ]  68.35 rules/sec 00m03s LEFT
zoom: rule __PILL_PRICE_02 will loop on SpamAssassin older than 3.3.2 running under Perl 5.12 or older, Bug 6558

58% [========================                   ]  66.01 rules/sec 00m03s LEFT
64% [===========================                ]  68.81 rules/sec 00m02s LEFT
zoom: rule __FOR_SALE_PRC_10K will loop on SpamAssassin older than 3.3.2 running under Perl 5.12 or older, Bug 6558

70% [==============================             ]  64.88 rules/sec 00m02s LEFT
zoom: rule __FOR_SALE_PRC_100K will loop on SpamAssassin older than 3.3.2 running under Perl 5.12 or older, Bug 6558

76% [================================           ]  60.28 rules/sec 00m01s LEFT
82% [===================================        ]  62.51 rules/sec 00m01s LEFT
88% [======================================     ]  63.04 rules/sec 00m00s LEFT
93% [========================================   ]  57.08 rules/sec 00m00s LEFT
zoom: rule __FOR_SALE_NET will loop on SpamAssassin older than 3.3.2 running under Perl 5.12 or older, Bug 6558

100% [===========================================]  64.46 rules/sec 00m08s DONE

  0% [                                           ]   0.00 bases/sec --m--s LEFT
  5% [==                                         ] 283.38 bases/sec 00m08s LEFT
11% [====                                       ] 276.59 bases/sec 00m07s LEFT
22% [=========                                  ] 417.47 bases/sec 00m05s LEFT
26% [===========                                ] 298.31 bases/sec 00m05s LEFT
29% [============                               ] 225.64 bases/sec 00m06s LEFT
34% [==============                             ] 228.80 bases/sec 00m05s LEFT
37% [================                           ] 209.05 bases/sec 00m05s LEFT
44% [===================                        ] 269.99 bases/sec 00m04s LEFT
47% [====================                       ] 212.33 bases/sec 00m04s LEFT
52% [======================                     ] 212.82 bases/sec 00m04s LEFT
54% [=======================                    ] 158.14 bases/sec 00m04s LEFT
57% [========================                   ] 148.47 bases/sec 00m04s LEFT
60% [=========================                  ] 153.58 bases/sec 00m04s LEFT
63% [===========================                ] 142.30 bases/sec 00m04s LEFT
65% [============================               ] 139.87 bases/sec 00m03s LEFT
69% [=============================              ] 158.67 bases/sec 00m03s LEFT
81% [==================================         ] 360.71 bases/sec 00m01s LEFT
92% [=======================================    ] 467.41 bases/sec 00m00s LEFT
100% [===========================================] 259.72 bases/sec 00m09s DONE
Aug 30 17:25:57.397 [9828] info: body_0: 1204 base strings extracted in 18 seconds
cd /tmp/.spamassassin9828VjYRI4tmp
reading bases_body_0.in
cd Mail-SpamAssassin-CompiledRegexps-body_0
re2c -i -b -o scanner1.c scanner1.re
re2c -i -b -o scanner2.c scanner2.re
re2c -i -b -o scanner3.c scanner3.re
re2c -i -b -o scanner4.c scanner4.re
re2c -i -b -o scanner5.c scanner5.re
re2c -i -b -o scanner6.c scanner6.re
re2c -i -b -o scanner7.c scanner7.re
/usr/local/bin/perl5.20.2 Makefile.PL PREFIX=/tmp/.spamassassin9828VjYRI4tmp/ignored INSTALLSITEARCH=/var/db/spamassassin/compiled/5.020/3.004001
Generating a Unix-style Makefile
Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_0
Writing MYMETA.yml and MYMETA.json
make
cp body_0.pm blib/lib/Mail/SpamAssassin/CompiledRegexps/body_0.pm
Running Mkbootstrap for Mail::SpamAssassin::CompiledRegexps::body_0 ()
chmod 644 body_0.bs
/usr/local/bin/perl5.20.2 /usr/local/lib/perl5/5.20/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/5.20/ExtUtils/typemap  body_0.xs > body_0.xsc && mv body_0.xsc body_0.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O2 -pipe -fstack-protector -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.20/mach/CORE"   body_0.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O2 -pipe -fstack-protector -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.20/mach/CORE"   scanner1.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O2 -pipe -fstack-protector -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.20/mach/CORE"   scanner2.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O2 -pipe -fstack-protector -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.20/mach/CORE"   scanner3.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O2 -pipe -fstack-protector -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.20/mach/CORE"   scanner4.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O2 -pipe -fstack-protector -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.20/mach/CORE"   scanner5.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O2 -pipe -fstack-protector -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.20/mach/CORE"   scanner6.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O2 -pipe -fstack-protector -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.20/mach/CORE"   scanner7.c
rm -f blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
cc  -shared  -L/usr/ports/lang/perl5.20/work/perl-5.20.2 -L/usr/local/lib/perl5/5.20/mach/CORE -Wl,-rpath=/usr/local/lib/perl5/5.20/mach/CORE -lperl -L/usr/local/lib -fstack-protector body_0.o  scanner1.o  scanner2.o  scanner3.o  scanner4.o  scanner5.o  scanner6.o  scanner7.o  -o blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so             
chmod 755 blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
/usr/local/bin/perl5.20.2 -MExtUtils::Command::MM -e 'cp_nonempty' -- body_0.bs blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.bs 644
Manifying blib/man3/Mail::SpamAssassin::CompiledRegexps::body_0.3
make install
Running Mkbootstrap for Mail::SpamAssassin::CompiledRegexps::body_0 ()
chmod 644 body_0.bs
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /var/db/spamassassin/compiled/5.020/3.004001/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
Installing /var/db/spamassassin/compiled/5.020/3.004001/Mail/SpamAssassin/CompiledRegexps/body_0.pm
Installing /tmp/.spamassassin9828VjYRI4tmp/ignored/lib/perl5/site_perl/man/man3/Mail::SpamAssassin::CompiledRegexps::body_0.3
Appending installation info to /tmp/.spamassassin9828VjYRI4tmp/ignored/lib/perl5/5.20/mach/perllocal.pod
cp /tmp/.spamassassin9828VjYRI4tmp/bases_body_0.pl /var/db/spamassassin/compiled/5.020/3.004001/bases_body_0.pl
cd /
rm -rf /tmp/.spamassassin9828VjYRI4tmp
[ INFO ] Updating ClamAV database (freshclam), please wait ...

7

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

3m wrote:

+ < DEBUG > Copy sample MySQL config file: /root/iRedMail/samples/mysql/my.cnf -> /var/db/mysql/my.cnf.
innodb_file_per_table
mysql not running? (check /var/db/mysql/test.ua.pid).
/usr/local/etc/rc.d/mysql-server: WARNING: failed precmd routine for mysql
+ < DEBUG > Sleep 10 seconds for MySQL daemon initialization ...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Looks like this is (red line) the problem. I will check it later.

8

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

Hi! I'm reinstalling had spent, error repeats !!!

9

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

Could you please try the patch below? it works for me, toke me 323 minutes to finish the installation.

diff -r b5ca2290d5f5 iRedMail/conf/mysql
--- a/iRedMail/conf/mysql    Sat Aug 29 23:41:56 2015 +0800
+++ b/iRedMail/conf/mysql    Wed Sep 02 00:21:54 2015 +0800
@@ -46,7 +46,7 @@
     fi
 elif [ X"${DISTRO}" == X'FREEBSD' ]; then
     export MYSQL_RC_SCRIPT_NAME='mysql-server'
-    export MYSQL_MY_CNF="/var/db/mysql/my.cnf"
+    export MYSQL_MY_CNF='/usr/local/etc/my.cnf'
 
 elif [ X"${DISTRO}" == X'OPENBSD' ]; then
     export MYSQL_RC_SCRIPT_NAME='mysqld'
diff -r b5ca2290d5f5 iRedMail/functions/mysql.sh
--- a/iRedMail/functions/mysql.sh    Sat Aug 29 23:41:56 2015 +0800
+++ b/iRedMail/functions/mysql.sh    Wed Sep 02 00:21:54 2015 +0800
@@ -62,6 +62,7 @@
         # Start service when system start up.
         # 'mysql_enable=YES' is required to start service immediately.
         service_control enable 'mysql_enable' 'YES'
+        service_control enable 'mysql_optfile' "${MYSQL_MY_CNF}"
     fi
 
     if [ ! -f ${MYSQL_MY_CNF} ]; then
diff -r b5ca2290d5f5 iRedMail/samples/mysql/my.cnf
--- a/iRedMail/samples/mysql/my.cnf    Sat Aug 29 23:41:56 2015 +0800
+++ b/iRedMail/samples/mysql/my.cnf    Wed Sep 02 00:21:54 2015 +0800
@@ -29,7 +29,7 @@
 [mysqld]
 #bind-address            = 127.0.0.1
 port                    = 3306
-default-character-set   = utf8
+#default-character-set   = utf8
 #datadir                 = /var/lib/mysql
 #socket                  = /var/lib/mysql/mysql.sock
 #user                    = mysql

10

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

Thanks for the correction, but Iredadmin is not working  'Internal Server Error'

/var/log/nginx/error.log
2015/09/02 18:47:41 [error] 1154#100097: *49 open() "/usr/local/www/apache24/data/favicon.ico" failed (2: No such file or directory), client: 192.168.1.127, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.1.117", referrer: "https://192.168.1.117/iredadmin/"

at what here apache24 !?

11

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

*) Any related log in /var/log/uwsgi-iredadmin.log? Do you have port devel/py-Jinja2 installed?
*) Are you running the latest development edition of iRedMail? i just fixed the missing port `devel/py-Jinja2`.

12

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

/var/log/uwsgi-iredadmin.log

*** Starting uWSGI 2.0.11.1 (64bit) on [Wed Sep  2 18:38:28 2015] ***
compiled with version: 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032) on 02 September 2015 17:45:46
os: FreeBSD-10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC
nodename: test.ua
machine: amd64
clock source: unix
detected number of CPU cores: 1
current working directory: /
writing pidfile to /var/run/uwsgi-iredadmin.pid
detected binary path: /usr/local/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 6670
your memory page size is 4096 bytes
detected max file descriptor number: 58284
VirtualHosting mode enabled.
lock engine: POSIX semaphores
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /var/run/uwsgi_iredadmin.socket fd 3
uwsgi socket 1 bound to UNIX address /tmp/uwsgi-iredadmin.sock fd 4
setgid() to 2001
setuid() to 2001
Python version: 2.7.10 (default, Sep  2 2015, 15:25:57)  [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)]
Python main interpreter initialized at 0x8028880c0
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 72752 bytes (71 KB) for 1 cores
*** Operational MODE: single process ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 686, cores: 1)
Traceback (most recent call last):
  File "./iredadmin.py", line 9, in <module>
    from libs import iredbase
  File "/usr/local/www/iRedAdmin-0.4.2/libs/iredbase.py", line 8, in <module>
    from jinja2 import Environment, FileSystemLoader
ImportError: No module named jinja2
unable to load app 0 (mountpoint='192.168.1.117|/iredadmin') (callable not found or import error)
--- no python application found, check your startup logs for errors ---
192.168.1.117 [pid: 686|app: -1|req: -1/1] 192.168.1.127 () {48 vars in 887 bytes} [Wed Sep  2 18:47:41 2015] GET /iredadmin/ => generated 21 bytes in 121 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
Traceback (most recent call last):
  File "/usr/local/www/iRedAdmin-0.4.2/iredadmin.py", line 9, in <module>
    from libs import iredbase
  File "/usr/local/www/iRedAdmin-0.4.2/libs/iredbase.py", line 8, in <module>
    from jinja2 import Environment, FileSystemLoader
ImportError: No module named jinja2
unable to load app 0 (mountpoint='192.168.1.117|/iredadmin') (callable not found or import error)
--- no python application found, check your startup logs for errors ---
192.168.1.117 [pid: 686|app: -1|req: -1/2] 192.168.1.127 () {50 vars in 917 bytes} [Wed Sep  2 18:47:46 2015] GET /iredadmin/ => generated 21 bytes in 2 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
Traceback (most recent call last):
  File "/usr/local/www/iRedAdmin-0.4.2/iredadmin.py", line 9, in <module>
    from libs import iredbase
  File "/usr/local/www/iRedAdmin-0.4.2/libs/iredbase.py", line 8, in <module>
    from jinja2 import Environment, FileSystemLoader
ImportError: No module named jinja2
unable to load app 0 (mountpoint='192.168.1.117|/iredadmin') (callable not found or import error)
--- no python application found, check your startup logs for errors ---
192.168.1.117 [pid: 686|app: -1|req: -1/3] 192.168.1.127 () {50 vars in 917 bytes} [Wed Sep  2 18:47:47 2015] GET /iredadmin/ => generated 21 bytes in 2 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
Traceback (most recent call last):
  File "/usr/local/www/iRedAdmin-0.4.2/iredadmin.py", line 9, in <module>
    from libs import iredbase
  File "/usr/local/www/iRedAdmin-0.4.2/libs/iredbase.py", line 8, in <module>
    from jinja2 import Environment, FileSystemLoader
ImportError: No module named jinja2
unable to load app 0 (mountpoint='192.168.1.117|/iredadmin') (callable not found or import error)
--- no python application found, check your startup logs for errors ---
192.168.1.117 [pid: 686|app: -1|req: -1/4] 192.168.1.127 () {50 vars in 917 bytes} [Wed Sep  2 18:47:50 2015] GET /iredadmin/ => generated 21 bytes in 2 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
Traceback (most recent call last):
  File "/usr/local/www/iRedAdmin-0.4.2/iredadmin.py", line 9, in <module>
    from libs import iredbase
  File "/usr/local/www/iRedAdmin-0.4.2/libs/iredbase.py", line 8, in <module>
    from jinja2 import Environment, FileSystemLoader
ImportError: No module named jinja2
unable to load app 0 (mountpoint='192.168.1.117|/iredadmin') (callable not found or import error)
--- no python application found, check your startup logs for errors ---
192.168.1.117 [pid: 686|app: -1|req: -1/5] 192.168.1.127 () {50 vars in 917 bytes} [Wed Sep  2 18:48:17 2015] GET /iredadmin/ => generated 21 bytes in 2 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
*** Starting uWSGI 2.0.11.1 (64bit) on [Wed Sep  2 18:49:27 2015] ***
compiled with version: 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032) on 02 September 2015 17:45:46
os: FreeBSD-10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC
nodename: test.ua
machine: amd64
clock source: unix
detected number of CPU cores: 1
current working directory: /
writing pidfile to /var/run/uwsgi-iredadmin.pid
detected binary path: /usr/local/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 6670
your memory page size is 4096 bytes
detected max file descriptor number: 58284
VirtualHosting mode enabled.
lock engine: POSIX semaphores
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /var/run/uwsgi_iredadmin.socket fd 3
uwsgi socket 1 bound to UNIX address /tmp/uwsgi-iredadmin.sock fd 4
setgid() to 2001
setuid() to 2001
Python version: 2.7.10 (default, Sep  2 2015, 15:25:57)  [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)]
Python main interpreter initialized at 0x8028880c0
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 72752 bytes (71 KB) for 1 cores
*** Operational MODE: single process ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 673, cores: 1)
Traceback (most recent call last):
  File "./iredadmin.py", line 9, in <module>
    from libs import iredbase
  File "/usr/local/www/iRedAdmin-0.4.2/libs/iredbase.py", line 8, in <module>
    from jinja2 import Environment, FileSystemLoader
ImportError: No module named jinja2
unable to load app 0 (mountpoint='192.168.1.117|/iredadmin') (callable not found or import error)
--- no python application found, check your startup logs for errors ---
192.168.1.117 [pid: 673|app: -1|req: -1/1] 192.168.1.127 () {50 vars in 917 bytes} [Wed Sep  2 18:50:04 2015] GET /iredadmin/ => generated 21 bytes in 99 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
Traceback (most recent call last):
  File "/usr/local/www/iRedAdmin-0.4.2/iredadmin.py", line 9, in <module>
    from libs import iredbase
  File "/usr/local/www/iRedAdmin-0.4.2/libs/iredbase.py", line 8, in <module>
    from jinja2 import Environment, FileSystemLoader
ImportError: No module named jinja2
unable to load app 0 (mountpoint='192.168.1.117|/iredadmin') (callable not found or import error)
--- no python application found, check your startup logs for errors ---
192.168.1.117 [pid: 673|app: -1|req: -1/2] 192.168.1.127 () {50 vars in 917 bytes} [Wed Sep  2 18:51:49 2015] GET /iredadmin/ => generated 21 bytes in 2 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
Traceback (most recent call last):
  File "/usr/local/www/iRedAdmin-0.4.2/iredadmin.py", line 9, in <module>
    from libs import iredbase
  File "/usr/local/www/iRedAdmin-0.4.2/libs/iredbase.py", line 8, in <module>
    from jinja2 import Environment, FileSystemLoader
ImportError: No module named jinja2
unable to load app 0 (mountpoint='192.168.1.117|/iredadmin') (callable not found or import error)
--- no python application found, check your startup logs for errors ---
192.168.1.117 [pid: 673|app: -1|req: -1/3] 192.168.1.127 () {50 vars in 917 bytes} [Wed Sep  2 18:52:41 2015] GET /iredadmin/ => generated 21 bytes in 2 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
Traceback (most recent call last):
  File "/usr/local/www/iRedAdmin-0.4.2/iredadmin.py", line 9, in <module>
    from libs import iredbase
  File "/usr/local/www/iRedAdmin-0.4.2/libs/iredbase.py", line 8, in <module>
    from jinja2 import Environment, FileSystemLoader
ImportError: No module named jinja2
unable to load app 0 (mountpoint='192.168.1.117|/iredadmin') (callable not found or import error)
--- no python application found, check your startup logs for errors ---
192.168.1.117 [pid: 673|app: -1|req: -1/4] 192.168.1.127 () {50 vars in 917 bytes} [Wed Sep  2 18:52:43 2015] GET /iredadmin/ => generated 21 bytes in 7 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
Traceback (most recent call last):
  File "/usr/local/www/iRedAdmin-0.4.2/iredadmin.py", line 9, in <module>
    from libs import iredbase
  File "/usr/local/www/iRedAdmin-0.4.2/libs/iredbase.py", line 8, in <module>
    from jinja2 import Environment, FileSystemLoader
ImportError: No module named jinja2
unable to load app 0 (mountpoint='192.168.1.117|/iredadmin') (callable not found or import error)
--- no python application found, check your startup logs for errors ---
192.168.1.117 [pid: 673|app: -1|req: -1/5] 192.168.1.127 () {50 vars in 917 bytes} [Wed Sep  2 18:52:44 2015] GET /iredadmin/ => generated 21 bytes in 2 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
Traceback (most recent call last):
  File "/usr/local/www/iRedAdmin-0.4.2/iredadmin.py", line 9, in <module>
    from libs import iredbase
  File "/usr/local/www/iRedAdmin-0.4.2/libs/iredbase.py", line 8, in <module>
    from jinja2 import Environment, FileSystemLoader
ImportError: No module named jinja2
unable to load app 0 (mountpoint='192.168.1.117|/iredadmin') (callable not found or import error)
--- no python application found, check your startup logs for errors ---
192.168.1.117 [pid: 673|app: -1|req: -1/6] 192.168.1.127 () {50 vars in 917 bytes} [Wed Sep  2 18:58:56 2015] GET /iredadmin/ => generated 21 bytes in 2 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
*** Starting uWSGI 2.0.11.1 (64bit) on [Thu Sep  3 11:15:02 2015] ***
compiled with version: 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032) on 02 September 2015 17:45:46
os: FreeBSD-10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC
nodename: test.ua
machine: amd64
clock source: unix
detected number of CPU cores: 1
current working directory: /
writing pidfile to /var/run/uwsgi-iredadmin.pid
detected binary path: /usr/local/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 6670
your memory page size is 4096 bytes
detected max file descriptor number: 58284
VirtualHosting mode enabled.
lock engine: POSIX semaphores
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /var/run/uwsgi_iredadmin.socket fd 3
uwsgi socket 1 bound to UNIX address /tmp/uwsgi-iredadmin.sock fd 4
setgid() to 2001
setuid() to 2001
Python version: 2.7.10 (default, Sep  2 2015, 15:25:57)  [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)]
Python main interpreter initialized at 0x8028880c0
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 72752 bytes (71 KB) for 1 cores
*** Operational MODE: single process ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 687, cores: 1)

13

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

3m wrote:

ImportError: No module named jinja2

Install port devel/py-Jinja2 will fix this issue.

And please apply this fix:
https://bitbucket.org/zhb/iredadmin-ose … 675484c5e0

14

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

I installed it https://bitbucket.org/zhb/iredmail/get/default.zip

/var/log/maillog 

Sep  4 01:09:15 test newsyslog[528]: logfile first created
Sep  4 01:09:16 test sm-mta[765]: starting daemon (8.15.2): SMTP+queueing@00:30:00
Sep  4 01:09:16 test sm-mta[765]: STARTTLS=server: file /etc/mail/certs/dh.param unsafe: No such file or directory
Sep  4 01:09:16 test sm-msp-queue[768]: starting daemon (8.15.2): queueing@00:30:00
Sep  4 08:21:55 test sm-mta[727]: starting daemon (8.15.2): SMTP+queueing@00:30:00
Sep  4 08:21:55 test sm-mta[727]: STARTTLS=server: file /etc/mail/certs/dh.param unsafe: No such file or directory
Sep  4 08:21:55 test sm-msp-queue[730]: starting daemon (8.15.2): queueing@00:30:00
Sep  4 09:45:09 test postfix/postfix-script[75788]: fatal: the Postfix mail system is not running
Sep  4 10:00:10 test postfix/postdrop[76783]: warning: unable to look up public/pickup: No such file or directory
Sep  4 10:08:17 test postfix/postfix-script[76902]: fatal: the Postfix mail system is not running
Sep  4 10:08:59 test amavis[1019]: starting. /usr/local/sbin/amavisd at test.ua amavisd-new-2.10.1 (20141025), Unicode aware
Sep  4 10:09:03 test amavis[1020]: Net::Server: Group Not Defined.  Defaulting to EGID '110 110'
Sep  4 10:09:03 test amavis[1020]: Net::Server: User Not Defined.  Defaulting to EUID '110'
Sep  4 10:09:04 test amavis[1020]: Module Amavis::Conf        2.404
Sep  4 10:09:04 test amavis[1020]: Module Archive::Zip        1.50
Sep  4 10:09:04 test amavis[1020]: Module BerkeleyDB          0.55
Sep  4 10:09:04 test amavis[1020]: Module Compress::Raw::Zlib 2.065
Sep  4 10:09:04 test amavis[1020]: Module Compress::Zlib      2.064
Sep  4 10:09:04 test amavis[1020]: Module Crypt::OpenSSL::RSA 0.28
Sep  4 10:09:04 test amavis[1020]: Module DBD::mysql          4.032
Sep  4 10:09:04 test amavis[1020]: Module DBI                 1.634
Sep  4 10:09:04 test amavis[1020]: Module DB_File             1.831
Sep  4 10:09:04 test amavis[1020]: Module Digest::MD5         2.53
Sep  4 10:09:04 test amavis[1020]: Module Digest::SHA         5.88
Sep  4 10:09:04 test amavis[1020]: Module Digest::SHA1        2.13
Sep  4 10:09:04 test amavis[1020]: Module Encode              2.60
Sep  4 10:09:04 test amavis[1020]: Module File::Temp          0.2304
Sep  4 10:09:04 test amavis[1020]: Module IO::Socket::INET6   2.72
Sep  4 10:09:04 test amavis[1020]: Module IO::Socket::IP      0.37
Sep  4 10:09:04 test amavis[1020]: Module MIME::Entity        5.506
Sep  4 10:09:04 test amavis[1020]: Module MIME::Parser        5.506
Sep  4 10:09:04 test amavis[1020]: Module MIME::Tools         5.506
Sep  4 10:09:04 test amavis[1020]: Module Mail::DKIM::Signer  0.4
Sep  4 10:09:04 test amavis[1020]: Module Mail::DKIM::Verifier 0.4
Sep  4 10:09:04 test amavis[1020]: Module Mail::Header        2.14
Sep  4 10:09:04 test amavis[1020]: Module Mail::Internet      2.14
Sep  4 10:09:04 test amavis[1020]: Module Mail::SPF           v2.009
Sep  4 10:09:04 test amavis[1020]: Module Mail::SpamAssassin  3.004001
Sep  4 10:09:04 test amavis[1020]: Module Net::DNS            1.01
Sep  4 10:09:04 test amavis[1020]: Module Net::LibIDN         0.12
Sep  4 10:09:04 test amavis[1020]: Module Net::Server         2.008
Sep  4 10:09:04 test amavis[1020]: Module NetAddr::IP         4.075
Sep  4 10:09:04 test amavis[1020]: Module Razor2::Client::Version 2.84
Sep  4 10:09:04 test amavis[1020]: Module Scalar::Util        1.38
Sep  4 10:09:04 test amavis[1020]: Module Socket              2.020
Sep  4 10:09:04 test amavis[1020]: Module Socket6             0.25
Sep  4 10:09:04 test amavis[1020]: Module Time::HiRes         1.9726
Sep  4 10:09:04 test amavis[1020]: Module URI                 1.69
Sep  4 10:09:04 test amavis[1020]: Module Unix::Syslog        1.1
Sep  4 10:09:04 test amavis[1020]: Amavis::ZMQ code     NOT loaded
Sep  4 10:09:04 test amavis[1020]: Amavis::DB code      loaded
Sep  4 10:09:04 test amavis[1020]: SQL base code        loaded
Sep  4 10:09:04 test amavis[1020]: SQL::Log code        loaded
Sep  4 10:09:04 test amavis[1020]: SQL::Quarantine      loaded
Sep  4 10:09:04 test amavis[1020]: Lookup::SQL code     loaded
Sep  4 10:09:04 test amavis[1020]: Lookup::LDAP code    NOT loaded
Sep  4 10:09:04 test amavis[1020]: AM.PDP-in proto code loaded
Sep  4 10:09:04 test amavis[1020]: SMTP-in proto code   loaded
Sep  4 10:09:04 test amavis[1020]: Courier proto code   NOT loaded
Sep  4 10:09:04 test amavis[1020]: SMTP-out proto code  loaded
Sep  4 10:09:04 test amavis[1020]: Pipe-out proto code  NOT loaded
Sep  4 10:09:04 test amavis[1020]: BSMTP-out proto code NOT loaded
Sep  4 10:09:04 test amavis[1020]: Local-out proto code NOT loaded
Sep  4 10:09:04 test amavis[1020]: OS_Fingerprint code  NOT loaded
Sep  4 10:09:04 test amavis[1020]: ANTI-VIRUS code      loaded
Sep  4 10:09:04 test amavis[1020]: ANTI-SPAM code       loaded
Sep  4 10:09:04 test amavis[1020]: ANTI-SPAM-EXT code   NOT loaded
Sep  4 10:09:04 test amavis[1020]: ANTI-SPAM-C code     NOT loaded
Sep  4 10:09:04 test amavis[1020]: ANTI-SPAM-SA code    loaded
Sep  4 10:09:04 test amavis[1020]: Unpackers code       loaded
Sep  4 10:09:04 test amavis[1020]: DKIM code            loaded
Sep  4 10:09:04 test amavis[1020]: Tools code           NOT loaded
Sep  4 10:09:04 test amavis[1020]: Found $file            at /usr/local/bin/file
Sep  4 10:09:04 test amavis[1020]: Found $altermime       at /usr/local/bin/altermime
Sep  4 10:09:04 test amavis[1020]: Internal decoder for .mail
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .F    at /usr/local/bin/unfreeze
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .Z    at /usr/bin/uncompress
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .gz   at /usr/bin/gzip -d
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .bz2  at /usr/bin/bzip2 -d
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .xz   at /usr/bin/xzdec
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .lzma at /usr/bin/xz -dc --format=lzma
Sep  4 10:09:04 test amavis[1020]: No ext program for   .lrz, tried: lrzip -q -k -d -o -, lrzcat -q -k
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .lzo  at /usr/local/bin/lzop -d
Sep  4 10:09:04 test amavis[1020]: No ext program for   .lz4, tried: lz4c -d
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .rpm  at /usr/local/bin/rpm2cpio.pl
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .cpio at /bin/pax
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .tar  at /bin/pax
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .deb  at /usr/bin/ar
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .rar  at /usr/local/bin/unrar
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .arj  at /usr/local/bin/unarj
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .arc  at /usr/local/bin/nomarch
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .zoo  at /usr/local/bin/zoo
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .doc  at /usr/local/bin/ripole
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .cab  at /usr/local/bin/cabextract
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .tnef at /usr/local/bin/tnef
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .zip  at /usr/local/bin/7za
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .kmz  at /usr/local/bin/7za
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .7z   at /usr/local/bin/7zr
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .jar  at /usr/local/bin/7z
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .swf  at /usr/local/bin/7z
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .lha  at /usr/local/bin/7z
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .iso  at /usr/local/bin/7z
Sep  4 10:09:04 test amavis[1020]: Found decoder for    .exe  at /usr/local/bin/unrar; /usr/local/bin/lha; /usr/local/bin/unarj
Sep  4 10:09:04 test amavis[1020]: No decoder for       .lrz
Sep  4 10:09:04 test amavis[1020]: No decoder for       .lz4
Sep  4 10:09:04 test amavis[1020]: Using primary internal av scanner code for ClamAV-clamd
Sep  4 10:09:04 test amavis[1020]: Found secondary av scanner ClamAV-clamscan at /usr/local/bin/clamscan
Sep  4 10:09:04 test amavis[1020]: Deleting db files  in /var/amavis/db
Sep  4 10:09:04 test amavis[1020]: Creating db in /var/amavis/db/; BerkeleyDB 0.55, libdb 5.3
Sep  4 10:09:04 test postfix/postfix-script[1134]: starting the Postfix mail system
Sep  4 10:09:04 test postfix/master[1136]: daemon started -- version 2.11.6, configuration /usr/local/etc/postfix
Sep  4 10:09:04 test postfix/pickup[1138]: E9434FEE74: uid=0 from=<root>
Sep  4 10:09:05 test postfix/cleanup[1141]: E9434FEE74: message-id=<20150904070904.E9434FEE74@test.ua>
Sep  4 10:09:05 test postfix/qmgr[1139]: E9434FEE74: from=<root@test.ua>, size=516, nrcpt=1 (queue active)
Sep  4 10:09:14 test amavis[1254]: (01254-01) (!)connect to /var/run/clamav/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.sock: No such file or directory
Sep  4 10:09:15 test amavis[1254]: (01254-01) (!)connect to /var/run/clamav/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.sock: No such file or directory
Sep  4 10:09:15 test amavis[1254]: (01254-01) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.sock, retrying (2)
Sep  4 10:09:21 test amavis[1254]: (01254-01) (!)connect to /var/run/clamav/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.sock: No such file or directory
Sep  4 10:09:21 test amavis[1254]: (01254-01) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.sock (All attempts (1) failed connecting to /var/run/clamav/clamd.sock) at (eval 104) line 613.\n
Sep  4 10:09:21 test amavis[1254]: (01254-01) (!)WARN: all primary virus scanners failed, considering backups
Sep  4 10:09:21 test amavis[1254]: (01254-01) (!)run_av (ClamAV-clamscan) FAILED - unexpected exit 2, output="WARNING: Ignoring deprecated option --disable-summary\nLibClamAV Error: cli_loaddbdir(): No supported database files found in /var/db/clamav\nERROR: Can't open file or directory\n\n----------- SCAN SUMMARY -----------\nKnown viruses: 0\nEngine version: 0.98.7\nScanned directories: 0\nScanned files: 0\nInfected files: 0\nData scanned: 0.00 MB\nData read: 0.00 MB (ratio 0.00:1)\nTime: 0.021 sec (0 m 0 s)"
Sep  4 10:09:21 test amavis[1254]: (01254-01) (!)ClamAV-clamscan av-scanner FAILED: /usr/local/bin/clamscan unexpected exit 2, output="WARNING: Ignoring deprecated option --disable-summary\nLibClamAV Error: cli_loaddbdir(): No supported database files found in /var/db/clamav\nERROR: Can't open file or directory\n\n----------- SCAN SUMMARY -----------\nKnown viruses: 0\nEngine version: 0.98.7\nScanned directories: 0\nScanned files: 0\nInfected files: 0\nData scanned: 0.00 MB\nData read: 0.00 MB (ratio 0.00:1)\nTime: 0.021 sec (0 m 0 s)" at (eval 104) line 905.
Sep  4 10:09:21 test amavis[1254]: (01254-01) (!!)AV: ALL VIRUS SCANNERS FAILED
Sep  4 10:09:23 test postfix/smtpd[1259]: connect from test.ua[127.0.0.1]
Sep  4 10:09:23 test postfix/smtpd[1259]: D42C3FEE84: client=test.ua[127.0.0.1]
Sep  4 10:09:23 test postfix/cleanup[1141]: D42C3FEE84: message-id=<20150904070904.E9434FEE74@test.ua>
Sep  4 10:09:23 test postfix/smtpd[1259]: disconnect from test.ua[127.0.0.1]
Sep  4 10:09:23 test postfix/qmgr[1139]: D42C3FEE84: from=<root@test.ua>, size=901, nrcpt=1 (queue active)
Sep  4 10:09:23 test amavis[1254]: (01254-01) Passed UNCHECKED {RelayedInbound}, [127.0.0.1] <root@test.ua> -> <root@test.ua>, Message-ID: <20150904070904.E9434FEE74@test.ua>, mail_id: Jq0PotFpaTu7, Hits: 1.178, size: 516, queued_as: D42C3FEE84, 9387 ms
Sep  4 10:09:23 test postfix/cleanup[1141]: DB322FEE86: message-id=<20150904070904.E9434FEE74@test.ua>
Sep  4 10:09:23 test postfix/local[1260]: D42C3FEE84: to=<root@test.ua>, relay=local, delay=0.03, delays=0/0.02/0/0.01, dsn=2.0.0, status=sent (forwarded as DB322FEE86)
Sep  4 10:09:23 test postfix/qmgr[1139]: DB322FEE86: from=<root@test.ua>, size=1017, nrcpt=1 (queue active)
Sep  4 10:09:23 test postfix/qmgr[1139]: D42C3FEE84: removed
Sep  4 10:09:23 test postfix/smtp[1144]: E9434FEE74: to=<root@test.ua>, relay=127.0.0.1[127.0.0.1]:10024, delay=564, delays=545/0.07/9.4/9.4, 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 D42C3FEE84)
Sep  4 10:09:23 test postfix/qmgr[1139]: E9434FEE74: removed
Sep  4 10:09:24 test postfix/pipe[1261]: DB322FEE86: to=<postmaster@test.km>, relay=dovecot, delay=0.28, delays=0/0.03/0/0.25, dsn=2.0.0, status=sent (delivered via dovecot service)
Sep  4 10:09:24 test postfix/qmgr[1139]: DB322FEE86: removed
Sep  4 10:17:19 test postfix/postscreen[1299]: cache btree:/var/db/postfix/postscreen_cache full cleanup: retained=0 dropped=0 entries
Sep  4 10:17:19 test postfix/postscreen[1299]: CONNECT from [192.168.1.127]:57203 to [192.168.1.117]:25
Sep  4 10:17:19 test postfix/submission/smtpd[1298]: connect from DESKTOP-03LCBEV[192.168.1.127]
Sep  4 10:17:19 test postfix/postscreen[1299]: CONNECT from [192.168.1.127]:57205 to [192.168.1.117]:25
Sep  4 10:17:19 test postfix/postscreen[1299]: PREGREET 33 after 0.01 from [192.168.1.127]:57203: EHLO we-guess.mozilla.org\r\nQUIT\r\n
Sep  4 10:17:19 test postfix/postscreen[1299]: PREGREET 33 after 0 from [192.168.1.127]:57205: EHLO we-guess.mozilla.org\r\nQUIT\r\n
Sep  4 10:17:19 test postfix/submission/smtpd[1303]: connect from DESKTOP-03LCBEV[192.168.1.127]
Sep  4 10:17:19 test postfix/submission/smtpd[1298]: disconnect from DESKTOP-03LCBEV[192.168.1.127]
Sep  4 10:17:19 test postfix/submission/smtpd[1303]: lost connection after CONNECT from DESKTOP-03LCBEV[192.168.1.127]
Sep  4 10:17:19 test postfix/submission/smtpd[1303]: disconnect from DESKTOP-03LCBEV[192.168.1.127]
Sep  4 10:17:19 test postfix/postscreen[1299]: COMMAND PIPELINING from [192.168.1.127]:57203 after EHLO: QUIT\r\n
Sep  4 10:17:19 test postfix/postscreen[1299]: DISCONNECT [192.168.1.127]:57203
Sep  4 10:17:19 test postfix/postscreen[1299]: COMMAND PIPELINING from [192.168.1.127]:57205 after EHLO: QUIT\r\n
Sep  4 10:17:19 test postfix/postscreen[1299]: DISCONNECT [192.168.1.127]:57205
Sep  4 10:18:17 test roundcube: <kl86jr98> IMAP Error: Login failed for zzz@test.ua from 192.168.1.127. LOGIN: Authentication failed. in /usr/local/www/roundcube/program/lib/Roundcube/rcube_imap.php on line 198 (POST /mail/?_task=login?_task=login&_action=login)
Sep  4 10:18:34 test roundcube: <kl86jr98> IMAP Error: Login failed for zzz@test.ua from 192.168.1.127. LOGIN: Authentication failed. in /usr/local/www/roundcube/program/lib/Roundcube/rcube_imap.php on line 198 (POST /mail/?_task=login?_task=login&_action=login)
Sep  4 10:18:58 test roundcube: <kl86jr98> IMAP Error: Login failed for zzz@test.ua from 192.168.1.127. LOGIN: Authentication failed. in /usr/local/www/roundcube/program/lib/Roundcube/rcube_imap.php on line 198 (POST /mail/?_task=login?_task=login&_action=login)
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 448
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 465
Sep  4 10:20:29 test postfix/submission/smtpd[1339]: connect from test.ua[127.0.0.1]
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 472
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 515
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 519
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 597
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 600
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 603
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 515
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 519
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 802
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 806
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 814
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 818
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 822
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 827
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 649
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 945
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  4 10:20:29 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 948
Sep  4 10:20:30 test postfix/trivial-rewrite[1340]: warning: do not list domain test.ua in BOTH mydestination and virtual_mailbox_domains
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 975
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 978
Sep  4 10:20:30 test postfix/trivial-rewrite[1340]: warning: do not list domain test.ua in BOTH mydestination and virtual_mailbox_domains
Sep  4 10:20:30 test postfix/submission/smtpd[1339]: 0B09EFEE84: client=test.ua[127.0.0.1], sasl_method=LOGIN, sasl_username=xxx@test.ua
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 1054
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 1057
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 1117
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 1127
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 1132
Sep  4 10:20:30 test postfix/cleanup[1341]: 0B09EFEE84: message-id=<e812eeb12e87c91a62dda89e54dacceb@test.ua>
Sep  4 10:20:30 test roundcube: <8csutuer> User xxx@test.ua [192.168.1.127]; Message for aaa@test.ua; 250: 2.0.0 Ok: queued as 0B09EFEE84
Sep  4 10:20:30 test postfix/qmgr[1139]: 0B09EFEE84: from=<xxx@test.ua>, size=500, nrcpt=1 (queue active)
Sep  4 10:20:30 test amavis[1253]: (01253-01) (!)connect to /var/run/clamav/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.sock: No such file or directory
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 489
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 492
Sep  4 10:20:30 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 495
Sep  4 10:20:30 test postfix/submission/smtpd[1339]: disconnect from test.ua[127.0.0.1]
Sep  4 10:20:31 test amavis[1253]: (01253-01) (!)connect to /var/run/clamav/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.sock: No such file or directory
Sep  4 10:20:31 test amavis[1253]: (01253-01) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.sock, retrying (2)
Sep  4 10:20:37 test amavis[1253]: (01253-01) (!)connect to /var/run/clamav/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.sock: No such file or directory
Sep  4 10:20:37 test amavis[1253]: (01253-01) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.sock (All attempts (1) failed connecting to /var/run/clamav/clamd.sock) at (eval 104) line 613.\n
Sep  4 10:20:37 test amavis[1253]: (01253-01) (!)WARN: all primary virus scanners failed, considering backups
Sep  4 10:20:39 test postfix/anvil[1305]: statistics: max connection rate 2/60s for (submission:192.168.1.127) at Sep  4 10:17:19
Sep  4 10:20:39 test postfix/anvil[1305]: statistics: max connection count 1 for (submission:192.168.1.127) at Sep  4 10:17:19
Sep  4 10:20:39 test postfix/anvil[1305]: statistics: max cache size 1 at Sep  4 10:17:19
Sep  4 10:20:52 test amavis[1253]: (01253-01) (!)connect to [127.0.0.1]:10027 failed, attempt #1: Can't connect to socket [127.0.0.1]:10027 using module IO::Socket::IP: Connection refused
Sep  4 10:20:52 test amavis[1253]: (01253-01) (!)ltjVGtAr08_4 FWD from <xxx@test.ua> -> <aaa@test.ua>,  451 4.5.0 From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01253-01
Sep  4 10:20:52 test amavis[1253]: (01253-01) Blocked MTA-BLOCKED {TempFailedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:37930 <xxx@test.ua> -> <aaa@test.ua>, Queue-ID: 0B09EFEE84, Message-ID: <e812eeb12e87c91a62dda89e54dacceb@test.ua>, mail_id: ltjVGtAr08_4, Hits: 4.481, size: 500, 22025 ms
Sep  4 10:20:52 test postfix/smtp[1343]: 0B09EFEE84: to=<aaa@test.ua>, relay=127.0.0.1[127.0.0.1]:10026, delay=22, delays=0.16/0.02/0.01/22, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=01253-01 - Temporary MTA failure on relaying, From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01253-01 (in reply to end of DATA command))
Sep  4 10:21:51 test postfix/submission/smtpd[1339]: connect from DESKTOP-03LCBEV[192.168.1.127]
Sep  4 10:21:51 test postfix/submission/smtpd[1339]: warning: TLS library problem: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_pkt.c:1300:SSL alert number 48:
Sep  4 10:21:51 test postfix/submission/smtpd[1339]: lost connection after STARTTLS from DESKTOP-03LCBEV[192.168.1.127]
Sep  4 10:21:51 test postfix/submission/smtpd[1339]: disconnect from DESKTOP-03LCBEV[192.168.1.127]
Sep  4 10:22:15 test postfix/submission/smtpd[1339]: connect from DESKTOP-03LCBEV[192.168.1.127]
Sep  4 10:22:15 test postfix/submission/smtpd[1339]: A5027FEE8B: client=DESKTOP-03LCBEV[192.168.1.127], sasl_method=PLAIN, sasl_username=aaa@test.ua
Sep  4 10:22:15 test postfix/cleanup[1376]: A5027FEE8B: message-id=<55E9469F.6070201@test.ua>
Sep  4 10:22:15 test postfix/qmgr[1139]: A5027FEE8B: from=<aaa@test.ua>, size=538, nrcpt=1 (queue active)
Sep  4 10:22:15 test postfix/submission/smtpd[1339]: disconnect from DESKTOP-03LCBEV[192.168.1.127]
Sep  4 10:22:15 test amavis[1254]: (01254-02) (!)connect to /var/run/clamav/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.sock: No such file or directory
Sep  4 10:22:16 test amavis[1254]: (01254-02) (!)connect to /var/run/clamav/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.sock: No such file or directory
Sep  4 10:22:16 test amavis[1254]: (01254-02) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.sock, retrying (2)
Sep  4 10:22:22 test amavis[1254]: (01254-02) (!)connect to /var/run/clamav/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.sock: No such file or directory
Sep  4 10:22:22 test amavis[1254]: (01254-02) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.sock (All attempts (1) failed connecting to /var/run/clamav/clamd.sock) at (eval 104) line 613.\n
Sep  4 10:22:22 test amavis[1254]: (01254-02) (!)WARN: all primary virus scanners failed, considering backups
Sep  4 10:22:38 test amavis[1254]: (01254-02) (!)connect to [127.0.0.1]:10027 failed, attempt #1: Can't connect to socket [127.0.0.1]:10027 using module IO::Socket::IP: Connection refused
Sep  4 10:22:38 test amavis[1254]: (01254-02) (!)vGkJGELMo1wE FWD from <aaa@test.ua> -> <xxx@test.ua>,  451 4.5.0 From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01254-02
Sep  4 10:22:38 test amavis[1254]: (01254-02) Blocked MTA-BLOCKED {TempFailedInternal}, ORIGINATING/MYNETS LOCAL [192.168.1.127]:57701 <aaa@test.ua> -> <xxx@test.ua>, Queue-ID: A5027FEE8B, Message-ID: <55E9469F.6070201@test.ua>, mail_id: vGkJGELMo1wE, Hits: 2.165, size: 538, 23025 ms
Sep  4 10:22:38 test postfix/smtp[1343]: A5027FEE8B: to=<xxx@test.ua>, relay=127.0.0.1[127.0.0.1]:10026, delay=23, delays=0.03/0/0/23, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=01254-02 - Temporary MTA failure on relaying, From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01254-02 (in reply to end of DATA command))

15

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

3m wrote:

Sep  4 10:22:22 test amavis[1254]: (01254-02) (!)connect to /var/run/clamav/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.sock: No such file or directory

Run 'freshclam' command first, then restart clamav service, then restart amavisd service.

16

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

It is the MOST MOST clean installation, fresh FreeBSD 10.2, fresh ports, fresh iRedMail ....this is the result

Sep  6 14:33:33 test newsyslog[526]: logfile first created
Sep  6 14:33:33 test sm-mta[763]: starting daemon (8.15.2): SMTP+queueing@00:30:00
Sep  6 14:33:33 test sm-mta[763]: STARTTLS=server: file /etc/mail/certs/dh.param unsafe: No such file or directory
Sep  6 14:33:33 test sm-msp-queue[766]: starting daemon (8.15.2): queueing@00:30:00
Sep  6 13:21:48 test postfix/postfix-script[1918]: fatal: the Postfix mail system is not running
Sep  6 13:34:11 test postfix/postfix-script[3022]: fatal: the Postfix mail system is not running
Sep  6 13:35:13 test amavis[1018]: starting. /usr/local/sbin/amavisd at test.ua amavisd-new-2.10.1 (20141025), Unicode aware
Sep  6 13:35:14 test amavis[1019]: Net::Server: Group Not Defined.  Defaulting to EGID '110 110'
Sep  6 13:35:14 test amavis[1019]: Net::Server: User Not Defined.  Defaulting to EUID '110'
Sep  6 13:35:14 test amavis[1019]: Module Amavis::Conf        2.404
Sep  6 13:35:14 test amavis[1019]: Module Archive::Zip        1.50
Sep  6 13:35:14 test amavis[1019]: Module BerkeleyDB          0.55
Sep  6 13:35:14 test amavis[1019]: Module Compress::Raw::Zlib 2.065
Sep  6 13:35:14 test amavis[1019]: Module Compress::Zlib      2.064
Sep  6 13:35:14 test amavis[1019]: Module Crypt::OpenSSL::RSA 0.28
Sep  6 13:35:14 test amavis[1019]: Module DBD::mysql          4.032
Sep  6 13:35:14 test amavis[1019]: Module DBI                 1.634
Sep  6 13:35:14 test amavis[1019]: Module DB_File             1.831
Sep  6 13:35:14 test amavis[1019]: Module Digest::MD5         2.53
Sep  6 13:35:14 test amavis[1019]: Module Digest::SHA         5.88
Sep  6 13:35:14 test amavis[1019]: Module Digest::SHA1        2.13
Sep  6 13:35:14 test amavis[1019]: Module Encode              2.60
Sep  6 13:35:14 test amavis[1019]: Module File::Temp          0.2304
Sep  6 13:35:14 test amavis[1019]: Module IO::Socket::INET6   2.72
Sep  6 13:35:14 test amavis[1019]: Module IO::Socket::IP      0.37
Sep  6 13:35:14 test amavis[1019]: Module MIME::Entity        5.506
Sep  6 13:35:14 test amavis[1019]: Module MIME::Parser        5.506
Sep  6 13:35:14 test amavis[1019]: Module MIME::Tools         5.506
Sep  6 13:35:14 test amavis[1019]: Module Mail::DKIM::Signer  0.4
Sep  6 13:35:14 test amavis[1019]: Module Mail::DKIM::Verifier 0.4
Sep  6 13:35:14 test amavis[1019]: Module Mail::Header        2.14
Sep  6 13:35:14 test amavis[1019]: Module Mail::Internet      2.14
Sep  6 13:35:14 test amavis[1019]: Module Mail::SPF           v2.009
Sep  6 13:35:14 test amavis[1019]: Module Mail::SpamAssassin  3.004001
Sep  6 13:35:14 test amavis[1019]: Module Net::DNS            1.01
Sep  6 13:35:14 test amavis[1019]: Module Net::LibIDN         0.12
Sep  6 13:35:14 test amavis[1019]: Module Net::Server         2.008
Sep  6 13:35:14 test amavis[1019]: Module NetAddr::IP         4.075
Sep  6 13:35:14 test amavis[1019]: Module Razor2::Client::Version 2.84
Sep  6 13:35:14 test amavis[1019]: Module Scalar::Util        1.38
Sep  6 13:35:14 test amavis[1019]: Module Socket              2.020
Sep  6 13:35:14 test amavis[1019]: Module Socket6             0.25
Sep  6 13:35:14 test amavis[1019]: Module Time::HiRes         1.9726
Sep  6 13:35:14 test amavis[1019]: Module URI                 1.69
Sep  6 13:35:14 test amavis[1019]: Module Unix::Syslog        1.1
Sep  6 13:35:14 test amavis[1019]: Amavis::ZMQ code     NOT loaded
Sep  6 13:35:14 test amavis[1019]: Amavis::DB code      loaded
Sep  6 13:35:14 test amavis[1019]: SQL base code        loaded
Sep  6 13:35:14 test amavis[1019]: SQL::Log code        loaded
Sep  6 13:35:14 test amavis[1019]: SQL::Quarantine      loaded
Sep  6 13:35:14 test amavis[1019]: Lookup::SQL code     loaded
Sep  6 13:35:14 test amavis[1019]: Lookup::LDAP code    NOT loaded
Sep  6 13:35:14 test amavis[1019]: AM.PDP-in proto code loaded
Sep  6 13:35:14 test amavis[1019]: SMTP-in proto code   loaded
Sep  6 13:35:14 test amavis[1019]: Courier proto code   NOT loaded
Sep  6 13:35:14 test amavis[1019]: SMTP-out proto code  loaded
Sep  6 13:35:14 test amavis[1019]: Pipe-out proto code  NOT loaded
Sep  6 13:35:14 test amavis[1019]: BSMTP-out proto code NOT loaded
Sep  6 13:35:14 test amavis[1019]: Local-out proto code NOT loaded
Sep  6 13:35:14 test amavis[1019]: OS_Fingerprint code  NOT loaded
Sep  6 13:35:14 test amavis[1019]: ANTI-VIRUS code      loaded
Sep  6 13:35:14 test amavis[1019]: ANTI-SPAM code       loaded
Sep  6 13:35:14 test amavis[1019]: ANTI-SPAM-EXT code   NOT loaded
Sep  6 13:35:14 test amavis[1019]: ANTI-SPAM-C code     NOT loaded
Sep  6 13:35:14 test amavis[1019]: ANTI-SPAM-SA code    loaded
Sep  6 13:35:14 test amavis[1019]: Unpackers code       loaded
Sep  6 13:35:14 test amavis[1019]: DKIM code            loaded
Sep  6 13:35:14 test amavis[1019]: Tools code           NOT loaded
Sep  6 13:35:14 test amavis[1019]: Found $file            at /usr/local/bin/file
Sep  6 13:35:14 test amavis[1019]: Found $altermime       at /usr/local/bin/altermime
Sep  6 13:35:14 test amavis[1019]: Internal decoder for .mail
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .F    at /usr/local/bin/unfreeze
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .Z    at /usr/bin/uncompress
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .gz   at /usr/bin/gzip -d
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .bz2  at /usr/bin/bzip2 -d
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .xz   at /usr/bin/xzdec
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .lzma at /usr/bin/xz -dc --format=lzma
Sep  6 13:35:14 test amavis[1019]: No ext program for   .lrz, tried: lrzip -q -k -d -o -, lrzcat -q -k
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .lzo  at /usr/local/bin/lzop -d
Sep  6 13:35:14 test amavis[1019]: No ext program for   .lz4, tried: lz4c -d
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .rpm  at /usr/local/bin/rpm2cpio.pl
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .cpio at /bin/pax
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .tar  at /bin/pax
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .deb  at /usr/bin/ar
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .rar  at /usr/local/bin/unrar
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .arj  at /usr/local/bin/unarj
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .arc  at /usr/local/bin/nomarch
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .zoo  at /usr/local/bin/zoo
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .doc  at /usr/local/bin/ripole
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .cab  at /usr/local/bin/cabextract
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .tnef at /usr/local/bin/tnef
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .zip  at /usr/local/bin/7za
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .kmz  at /usr/local/bin/7za
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .7z   at /usr/local/bin/7zr
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .jar  at /usr/local/bin/7z
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .swf  at /usr/local/bin/7z
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .lha  at /usr/local/bin/7z
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .iso  at /usr/local/bin/7z
Sep  6 13:35:14 test amavis[1019]: Found decoder for    .exe  at /usr/local/bin/unrar; /usr/local/bin/lha; /usr/local/bin/unarj
Sep  6 13:35:14 test amavis[1019]: No decoder for       .lrz
Sep  6 13:35:14 test amavis[1019]: No decoder for       .lz4
Sep  6 13:35:14 test amavis[1019]: Using primary internal av scanner code for ClamAV-clamd
Sep  6 13:35:14 test amavis[1019]: Found secondary av scanner ClamAV-clamscan at /usr/local/bin/clamscan
Sep  6 13:35:14 test amavis[1019]: Deleting db files  in /var/amavis/db
Sep  6 13:35:14 test amavis[1019]: Creating db in /var/amavis/db/; BerkeleyDB 0.55, libdb 5.3
Sep  6 13:35:29 test postfix/postfix-script[1140]: starting the Postfix mail system
Sep  6 13:35:29 test postfix/master[1142]: daemon started -- version 2.11.6, configuration /usr/local/etc/postfix
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 448
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 465
Sep  6 13:41:04 test postfix/submission/smtpd[1299]: connect from test.ua[127.0.0.1]
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 472
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 515
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 519
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 597
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 600
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 603
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 515
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 519
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 802
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 806
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 814
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 818
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 822
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 827
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 649
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 945
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 948
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 975
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 978
Sep  6 13:41:04 test postfix/trivial-rewrite[1302]: warning: do not list domain test.ua in BOTH mydestination and virtual_mailbox_domains
Sep  6 13:41:04 test postfix/submission/smtpd[1299]: C17AB1285B0: client=test.ua[127.0.0.1], sasl_method=LOGIN, sasl_username=postmaster@test.km
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 1054
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 1057
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 1117
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 1127
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  6 13:41:04 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 1132
Sep  6 13:41:04 test postfix/cleanup[1303]: C17AB1285B0: message-id=<088197127e3e1e2a24bd5bc9227d1de9@test.km>
Sep  6 13:41:04 test postfix/qmgr[1145]: C17AB1285B0: from=<postmaster@test.km>, size=502, nrcpt=1 (queue active)
Sep  6 13:41:04 test roundcube: <evfelga4> User postmaster@test.km [192.168.1.127]; Message for xxx@test.ua; 250: 2.0.0 Ok: queued as C17AB1285B0
Sep  6 13:41:05 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 489
Sep  6 13:41:05 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  6 13:41:05 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 492
Sep  6 13:41:05 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 495
Sep  6 13:41:05 test postfix/submission/smtpd[1299]: disconnect from test.ua[127.0.0.1]
Sep  6 13:41:08 test amavis[1026]: (01026-01) (!)connect to [127.0.0.1]:10027 failed, attempt #1: Can't connect to socket [127.0.0.1]:10027 using module IO::Socket::IP: Connection refused
Sep  6 13:41:08 test amavis[1026]: (01026-01) (!)zyZRhJp76UZR FWD from <postmaster@test.km> -> <xxx@test.ua>,  451 4.5.0 From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01026-01
Sep  6 13:41:08 test amavis[1026]: (01026-01) Blocked MTA-BLOCKED {TempFailedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:13055 <postmaster@test.km> -> <xxx@test.ua>, Queue-ID: C17AB1285B0, Message-ID: <088197127e3e1e2a24bd5bc9227d1de9@test.km>, mail_id: zyZRhJp76UZR, Hits: 2.199, size: 502, dkim_new=dkim:test.km, 3048 ms
Sep  6 13:41:08 test postfix/smtp[1304]: C17AB1285B0: to=<xxx@test.ua>, relay=127.0.0.1[127.0.0.1]:10026, delay=3.4, delays=0.18/0.12/0.01/3, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=01026-01 - Temporary MTA failure on relaying, From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01026-01 (in reply to end of DATA command))
Sep  6 13:43:04 test postfix/postfix-script[1460]: stopping the Postfix mail system
Sep  6 13:43:04 test postfix/master[1142]: terminating on signal 15
Sep  6 13:43:41 test amavis[1002]: starting. /usr/local/sbin/amavisd at test.ua amavisd-new-2.10.1 (20141025), Unicode aware
Sep  6 13:43:41 test amavis[1003]: Net::Server: Group Not Defined.  Defaulting to EGID '110 110'
Sep  6 13:43:41 test amavis[1003]: Net::Server: User Not Defined.  Defaulting to EUID '110'
Sep  6 13:43:41 test amavis[1003]: Module Amavis::Conf        2.404
Sep  6 13:43:41 test amavis[1003]: Module Archive::Zip        1.50
Sep  6 13:43:41 test amavis[1003]: Module BerkeleyDB          0.55
Sep  6 13:43:41 test amavis[1003]: Module Compress::Raw::Zlib 2.065
Sep  6 13:43:41 test amavis[1003]: Module Compress::Zlib      2.064
Sep  6 13:43:41 test amavis[1003]: Module Crypt::OpenSSL::RSA 0.28
Sep  6 13:43:41 test amavis[1003]: Module DBD::mysql          4.032
Sep  6 13:43:41 test amavis[1003]: Module DBI                 1.634
Sep  6 13:43:41 test amavis[1003]: Module DB_File             1.831
Sep  6 13:43:41 test amavis[1003]: Module Digest::MD5         2.53
Sep  6 13:43:41 test amavis[1003]: Module Digest::SHA         5.88
Sep  6 13:43:41 test amavis[1003]: Module Digest::SHA1        2.13
Sep  6 13:43:41 test amavis[1003]: Module Encode              2.60
Sep  6 13:43:41 test amavis[1003]: Module File::Temp          0.2304
Sep  6 13:43:41 test amavis[1003]: Module IO::Socket::INET6   2.72
Sep  6 13:43:41 test amavis[1003]: Module IO::Socket::IP      0.37
Sep  6 13:43:41 test amavis[1003]: Module MIME::Entity        5.506
Sep  6 13:43:41 test amavis[1003]: Module MIME::Parser        5.506
Sep  6 13:43:41 test amavis[1003]: Module MIME::Tools         5.506
Sep  6 13:43:41 test amavis[1003]: Module Mail::DKIM::Signer  0.4
Sep  6 13:43:41 test amavis[1003]: Module Mail::DKIM::Verifier 0.4
Sep  6 13:43:41 test amavis[1003]: Module Mail::Header        2.14
Sep  6 13:43:41 test amavis[1003]: Module Mail::Internet      2.14
Sep  6 13:43:41 test amavis[1003]: Module Mail::SPF           v2.009
Sep  6 13:43:41 test amavis[1003]: Module Mail::SpamAssassin  3.004001
Sep  6 13:43:41 test amavis[1003]: Module Net::DNS            1.01
Sep  6 13:43:41 test amavis[1003]: Module Net::LibIDN         0.12
Sep  6 13:43:41 test amavis[1003]: Module Net::Server         2.008
Sep  6 13:43:41 test amavis[1003]: Module NetAddr::IP         4.075
Sep  6 13:43:41 test amavis[1003]: Module Razor2::Client::Version 2.84
Sep  6 13:43:41 test amavis[1003]: Module Scalar::Util        1.38
Sep  6 13:43:41 test amavis[1003]: Module Socket              2.020
Sep  6 13:43:41 test amavis[1003]: Module Socket6             0.25
Sep  6 13:43:41 test amavis[1003]: Module Time::HiRes         1.9726
Sep  6 13:43:41 test amavis[1003]: Module URI                 1.69
Sep  6 13:43:41 test amavis[1003]: Module Unix::Syslog        1.1
Sep  6 13:43:41 test amavis[1003]: Amavis::ZMQ code     NOT loaded
Sep  6 13:43:41 test amavis[1003]: Amavis::DB code      loaded
Sep  6 13:43:41 test amavis[1003]: SQL base code        loaded
Sep  6 13:43:41 test amavis[1003]: SQL::Log code        loaded
Sep  6 13:43:41 test amavis[1003]: SQL::Quarantine      loaded
Sep  6 13:43:41 test amavis[1003]: Lookup::SQL code     loaded
Sep  6 13:43:41 test amavis[1003]: Lookup::LDAP code    NOT loaded
Sep  6 13:43:41 test amavis[1003]: AM.PDP-in proto code loaded
Sep  6 13:43:41 test amavis[1003]: SMTP-in proto code   loaded
Sep  6 13:43:41 test amavis[1003]: Courier proto code   NOT loaded
Sep  6 13:43:41 test amavis[1003]: SMTP-out proto code  loaded
Sep  6 13:43:41 test amavis[1003]: Pipe-out proto code  NOT loaded
Sep  6 13:43:41 test amavis[1003]: BSMTP-out proto code NOT loaded
Sep  6 13:43:41 test amavis[1003]: Local-out proto code NOT loaded
Sep  6 13:43:41 test amavis[1003]: OS_Fingerprint code  NOT loaded
Sep  6 13:43:41 test amavis[1003]: ANTI-VIRUS code      loaded
Sep  6 13:43:41 test amavis[1003]: ANTI-SPAM code       loaded
Sep  6 13:43:41 test amavis[1003]: ANTI-SPAM-EXT code   NOT loaded
Sep  6 13:43:41 test amavis[1003]: ANTI-SPAM-C code     NOT loaded
Sep  6 13:43:41 test amavis[1003]: ANTI-SPAM-SA code    loaded
Sep  6 13:43:41 test amavis[1003]: Unpackers code       loaded
Sep  6 13:43:41 test amavis[1003]: DKIM code            loaded
Sep  6 13:43:41 test amavis[1003]: Tools code           NOT loaded
Sep  6 13:43:41 test amavis[1003]: Found $file            at /usr/local/bin/file
Sep  6 13:43:41 test amavis[1003]: Found $altermime       at /usr/local/bin/altermime
Sep  6 13:43:41 test amavis[1003]: Internal decoder for .mail
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .F    at /usr/local/bin/unfreeze
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .Z    at /usr/bin/uncompress
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .gz   at /usr/bin/gzip -d
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .bz2  at /usr/bin/bzip2 -d
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .xz   at /usr/bin/xzdec
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .lzma at /usr/bin/xz -dc --format=lzma
Sep  6 13:43:41 test amavis[1003]: No ext program for   .lrz, tried: lrzip -q -k -d -o -, lrzcat -q -k
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .lzo  at /usr/local/bin/lzop -d
Sep  6 13:43:41 test amavis[1003]: No ext program for   .lz4, tried: lz4c -d
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .rpm  at /usr/local/bin/rpm2cpio.pl
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .cpio at /bin/pax
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .tar  at /bin/pax
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .deb  at /usr/bin/ar
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .rar  at /usr/local/bin/unrar
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .arj  at /usr/local/bin/unarj
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .arc  at /usr/local/bin/nomarch
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .zoo  at /usr/local/bin/zoo
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .doc  at /usr/local/bin/ripole
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .cab  at /usr/local/bin/cabextract
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .tnef at /usr/local/bin/tnef
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .zip  at /usr/local/bin/7za
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .kmz  at /usr/local/bin/7za
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .7z   at /usr/local/bin/7zr
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .jar  at /usr/local/bin/7z
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .swf  at /usr/local/bin/7z
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .lha  at /usr/local/bin/7z
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .iso  at /usr/local/bin/7z
Sep  6 13:43:41 test amavis[1003]: Found decoder for    .exe  at /usr/local/bin/unrar; /usr/local/bin/lha; /usr/local/bin/unarj
Sep  6 13:43:41 test amavis[1003]: No decoder for       .lrz
Sep  6 13:43:41 test amavis[1003]: No decoder for       .lz4
Sep  6 13:43:41 test amavis[1003]: Using primary internal av scanner code for ClamAV-clamd
Sep  6 13:43:41 test amavis[1003]: Found secondary av scanner ClamAV-clamscan at /usr/local/bin/clamscan
Sep  6 13:43:41 test amavis[1003]: Deleting db files __db.001,__db.002,__db.003,snmp.db,nanny.db in /var/amavis/db
Sep  6 13:43:41 test amavis[1003]: Creating db in /var/amavis/db/; BerkeleyDB 0.55, libdb 5.3
Sep  6 13:43:56 test postfix/postfix-script[1118]: warning: /var/spool/postfix/etc/hosts and /etc/hosts differ
Sep  6 13:43:56 test postfix/postfix-script[1124]: starting the Postfix mail system
Sep  6 13:43:56 test postfix/master[1126]: daemon started -- version 2.11.6, configuration /usr/local/etc/postfix
Sep  6 13:44:57 test postfix/postfix-script[1378]: stopping the Postfix mail system
Sep  6 13:44:57 test postfix/master[1126]: terminating on signal 15
Sep  6 13:45:32 test amavis[1005]: starting. /usr/local/sbin/amavisd at test.ua amavisd-new-2.10.1 (20141025), Unicode aware
Sep  6 13:45:33 test amavis[1006]: Net::Server: Group Not Defined.  Defaulting to EGID '110 110'
Sep  6 13:45:33 test amavis[1006]: Net::Server: User Not Defined.  Defaulting to EUID '110'
Sep  6 13:45:33 test amavis[1006]: Module Amavis::Conf        2.404
Sep  6 13:45:33 test amavis[1006]: Module Archive::Zip        1.50
Sep  6 13:45:33 test amavis[1006]: Module BerkeleyDB          0.55
Sep  6 13:45:33 test amavis[1006]: Module Compress::Raw::Zlib 2.065
Sep  6 13:45:33 test amavis[1006]: Module Compress::Zlib      2.064
Sep  6 13:45:33 test amavis[1006]: Module Crypt::OpenSSL::RSA 0.28
Sep  6 13:45:33 test amavis[1006]: Module DBD::mysql          4.032
Sep  6 13:45:33 test amavis[1006]: Module DBI                 1.634
Sep  6 13:45:33 test amavis[1006]: Module DB_File             1.831
Sep  6 13:45:33 test amavis[1006]: Module Digest::MD5         2.53
Sep  6 13:45:33 test amavis[1006]: Module Digest::SHA         5.88
Sep  6 13:45:33 test amavis[1006]: Module Digest::SHA1        2.13
Sep  6 13:45:33 test amavis[1006]: Module Encode              2.60
Sep  6 13:45:33 test amavis[1006]: Module File::Temp          0.2304
Sep  6 13:45:33 test amavis[1006]: Module IO::Socket::INET6   2.72
Sep  6 13:45:33 test amavis[1006]: Module IO::Socket::IP      0.37
Sep  6 13:45:33 test amavis[1006]: Module MIME::Entity        5.506
Sep  6 13:45:33 test amavis[1006]: Module MIME::Parser        5.506
Sep  6 13:45:33 test amavis[1006]: Module MIME::Tools         5.506
Sep  6 13:45:33 test amavis[1006]: Module Mail::DKIM::Signer  0.4
Sep  6 13:45:33 test amavis[1006]: Module Mail::DKIM::Verifier 0.4
Sep  6 13:45:33 test amavis[1006]: Module Mail::Header        2.14
Sep  6 13:45:33 test amavis[1006]: Module Mail::Internet      2.14
Sep  6 13:45:33 test amavis[1006]: Module Mail::SPF           v2.009
Sep  6 13:45:33 test amavis[1006]: Module Mail::SpamAssassin  3.004001
Sep  6 13:45:33 test amavis[1006]: Module Net::DNS            1.01
Sep  6 13:45:33 test amavis[1006]: Module Net::LibIDN         0.12
Sep  6 13:45:33 test amavis[1006]: Module Net::Server         2.008
Sep  6 13:45:33 test amavis[1006]: Module NetAddr::IP         4.075
Sep  6 13:45:33 test amavis[1006]: Module Razor2::Client::Version 2.84
Sep  6 13:45:33 test amavis[1006]: Module Scalar::Util        1.38
Sep  6 13:45:33 test amavis[1006]: Module Socket              2.020
Sep  6 13:45:33 test amavis[1006]: Module Socket6             0.25
Sep  6 13:45:33 test amavis[1006]: Module Time::HiRes         1.9726
Sep  6 13:45:33 test amavis[1006]: Module URI                 1.69
Sep  6 13:45:33 test amavis[1006]: Module Unix::Syslog        1.1
Sep  6 13:45:33 test amavis[1006]: Amavis::ZMQ code     NOT loaded
Sep  6 13:45:33 test amavis[1006]: Amavis::DB code      loaded
Sep  6 13:45:33 test amavis[1006]: SQL base code        loaded
Sep  6 13:45:33 test amavis[1006]: SQL::Log code        loaded
Sep  6 13:45:33 test amavis[1006]: SQL::Quarantine      loaded
Sep  6 13:45:33 test amavis[1006]: Lookup::SQL code     loaded
Sep  6 13:45:33 test amavis[1006]: Lookup::LDAP code    NOT loaded
Sep  6 13:45:33 test amavis[1006]: AM.PDP-in proto code loaded
Sep  6 13:45:33 test amavis[1006]: SMTP-in proto code   loaded
Sep  6 13:45:33 test amavis[1006]: Courier proto code   NOT loaded
Sep  6 13:45:33 test amavis[1006]: SMTP-out proto code  loaded
Sep  6 13:45:33 test amavis[1006]: Pipe-out proto code  NOT loaded
Sep  6 13:45:33 test amavis[1006]: BSMTP-out proto code NOT loaded
Sep  6 13:45:33 test amavis[1006]: Local-out proto code NOT loaded
Sep  6 13:45:33 test amavis[1006]: OS_Fingerprint code  NOT loaded
Sep  6 13:45:33 test amavis[1006]: ANTI-VIRUS code      loaded
Sep  6 13:45:33 test amavis[1006]: ANTI-SPAM code       loaded
Sep  6 13:45:33 test amavis[1006]: ANTI-SPAM-EXT code   NOT loaded
Sep  6 13:45:33 test amavis[1006]: ANTI-SPAM-C code     NOT loaded
Sep  6 13:45:33 test amavis[1006]: ANTI-SPAM-SA code    loaded
Sep  6 13:45:33 test amavis[1006]: Unpackers code       loaded
Sep  6 13:45:33 test amavis[1006]: DKIM code            loaded
Sep  6 13:45:33 test amavis[1006]: Tools code           NOT loaded
Sep  6 13:45:33 test amavis[1006]: Found $file            at /usr/local/bin/file
Sep  6 13:45:33 test amavis[1006]: Found $altermime       at /usr/local/bin/altermime
Sep  6 13:45:33 test amavis[1006]: Internal decoder for .mail
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .F    at /usr/local/bin/unfreeze
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .Z    at /usr/bin/uncompress
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .gz   at /usr/bin/gzip -d
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .bz2  at /usr/bin/bzip2 -d
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .xz   at /usr/bin/xzdec
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .lzma at /usr/bin/xz -dc --format=lzma
Sep  6 13:45:33 test amavis[1006]: No ext program for   .lrz, tried: lrzip -q -k -d -o -, lrzcat -q -k
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .lzo  at /usr/local/bin/lzop -d
Sep  6 13:45:33 test amavis[1006]: No ext program for   .lz4, tried: lz4c -d
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .rpm  at /usr/local/bin/rpm2cpio.pl
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .cpio at /bin/pax
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .tar  at /bin/pax
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .deb  at /usr/bin/ar
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .rar  at /usr/local/bin/unrar
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .arj  at /usr/local/bin/unarj
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .arc  at /usr/local/bin/nomarch
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .zoo  at /usr/local/bin/zoo
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .doc  at /usr/local/bin/ripole
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .cab  at /usr/local/bin/cabextract
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .tnef at /usr/local/bin/tnef
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .zip  at /usr/local/bin/7za
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .kmz  at /usr/local/bin/7za
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .7z   at /usr/local/bin/7zr
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .jar  at /usr/local/bin/7z
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .swf  at /usr/local/bin/7z
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .lha  at /usr/local/bin/7z
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .iso  at /usr/local/bin/7z
Sep  6 13:45:33 test amavis[1006]: Found decoder for    .exe  at /usr/local/bin/unrar; /usr/local/bin/lha; /usr/local/bin/unarj
Sep  6 13:45:33 test amavis[1006]: No decoder for       .lrz
Sep  6 13:45:33 test amavis[1006]: No decoder for       .lz4
Sep  6 13:45:33 test amavis[1006]: Using primary internal av scanner code for ClamAV-clamd
Sep  6 13:45:33 test amavis[1006]: Found secondary av scanner ClamAV-clamscan at /usr/local/bin/clamscan
Sep  6 13:45:33 test amavis[1006]: Deleting db files __db.001,__db.002,__db.003,snmp.db,nanny.db in /var/amavis/db
Sep  6 13:45:33 test amavis[1006]: Creating db in /var/amavis/db/; BerkeleyDB 0.55, libdb 5.3
Sep  6 13:45:48 test postfix/postfix-script[1126]: starting the Postfix mail system
Sep  6 13:45:48 test postfix/master[1128]: daemon started -- version 2.11.6, configuration /usr/local/etc/postfix
Sep  6 13:49:49 test postfix/postscreen[1255]: cache btree:/var/db/postfix/postscreen_cache full cleanup: retained=0 dropped=0 entries
Sep  6 13:49:49 test postfix/postscreen[1255]: CONNECT from [192.168.1.127]:64095 to [192.168.1.117]:25
Sep  6 13:49:49 test postfix/postscreen[1255]: CONNECT from [192.168.1.127]:64097 to [192.168.1.117]:25
Sep  6 13:49:49 test postfix/postscreen[1255]: PREGREET 33 after 0 from [192.168.1.127]:64095: EHLO we-guess.mozilla.org\r\nQUIT\r\n
Sep  6 13:49:49 test postfix/postscreen[1255]: PREGREET 33 after 0 from [192.168.1.127]:64097: EHLO we-guess.mozilla.org\r\nQUIT\r\n
Sep  6 13:49:49 test postfix/submission/smtpd[1254]: connect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:49:49 test postfix/submission/smtpd[1254]: improper command pipelining after EHLO from DESKTOP-03LCBEV[192.168.1.127]: QUIT\r\n
Sep  6 13:49:49 test postfix/submission/smtpd[1264]: connect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:49:49 test postfix/submission/smtpd[1254]: disconnect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:49:49 test postfix/submission/smtpd[1264]: lost connection after CONNECT from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:49:49 test postfix/submission/smtpd[1264]: disconnect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:49:50 test postfix/postscreen[1255]: COMMAND PIPELINING from [192.168.1.127]:64095 after EHLO: QUIT\r\n
Sep  6 13:49:50 test postfix/postscreen[1255]: DISCONNECT [192.168.1.127]:64095
Sep  6 13:49:50 test postfix/postscreen[1255]: COMMAND PIPELINING from [192.168.1.127]:64097 after EHLO: QUIT\r\n
Sep  6 13:49:50 test postfix/postscreen[1255]: DISCONNECT [192.168.1.127]:64097
Sep  6 13:50:48 test postfix/qmgr[1131]: C17AB1285B0: from=<postmaster@test.km>, size=502, nrcpt=1 (queue active)
Sep  6 13:50:54 test amavis[1012]: (01012-01) (!)connect to [127.0.0.1]:10027 failed, attempt #1: Can't connect to socket [127.0.0.1]:10027 using module IO::Socket::IP: Connection refused
Sep  6 13:50:54 test amavis[1012]: (01012-01) (!)L80FXI3e2-p6 FWD from <postmaster@test.km> -> <xxx@test.ua>,  451 4.5.0 From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01012-01
Sep  6 13:50:54 test amavis[1012]: (01012-01) Blocked MTA-BLOCKED {TempFailedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:13055 <postmaster@test.km> -> <xxx@test.ua>, Queue-ID: C17AB1285B0, Message-ID: <088197127e3e1e2a24bd5bc9227d1de9@test.km>, mail_id: L80FXI3e2-p6, Hits: 2.199, size: 502, dkim_new=dkim:test.km, 6615 ms
Sep  6 13:50:54 test postfix/smtp[1281]: C17AB1285B0: to=<xxx@test.ua>, relay=127.0.0.1[127.0.0.1]:10026, delay=590, delays=583/0.03/0.01/6.6, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=01012-01 - Temporary MTA failure on relaying, From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01012-01 (in reply to end of DATA command))
Sep  6 13:51:18 test postfix/postscreen[1255]: CONNECT from [192.168.1.127]:64128 to [192.168.1.117]:25
Sep  6 13:51:18 test postfix/postscreen[1255]: CONNECT from [192.168.1.127]:64130 to [192.168.1.117]:25
Sep  6 13:51:18 test postfix/postscreen[1255]: PREGREET 33 after 0 from [192.168.1.127]:64128: EHLO we-guess.mozilla.org\r\nQUIT\r\n
Sep  6 13:51:18 test postfix/submission/smtpd[1254]: connect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:51:18 test postfix/postscreen[1255]: PREGREET 33 after 0 from [192.168.1.127]:64130: EHLO we-guess.mozilla.org\r\nQUIT\r\n
Sep  6 13:51:18 test postfix/submission/smtpd[1264]: connect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:51:18 test postfix/submission/smtpd[1254]: improper command pipelining after EHLO from DESKTOP-03LCBEV[192.168.1.127]: QUIT\r\n
Sep  6 13:51:18 test postfix/submission/smtpd[1264]: improper command pipelining after EHLO from DESKTOP-03LCBEV[192.168.1.127]: QUIT\r\n
Sep  6 13:51:18 test postfix/submission/smtpd[1254]: disconnect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:51:18 test postfix/submission/smtpd[1264]: disconnect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:51:18 test postfix/postscreen[1255]: COMMAND PIPELINING from [192.168.1.127]:64128 after EHLO: QUIT\r\n
Sep  6 13:51:18 test postfix/postscreen[1255]: DISCONNECT [192.168.1.127]:64128
Sep  6 13:51:18 test postfix/postscreen[1255]: COMMAND PIPELINING from [192.168.1.127]:64130 after EHLO: QUIT\r\n
Sep  6 13:51:18 test postfix/postscreen[1255]: DISCONNECT [192.168.1.127]:64130
Sep  6 13:52:10 test postfix/submission/smtpd[1254]: connect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:52:10 test postfix/submission/smtpd[1254]: warning: TLS library problem: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_pkt.c:1300:SSL alert number 48:
Sep  6 13:52:10 test postfix/submission/smtpd[1254]: lost connection after STARTTLS from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:52:10 test postfix/submission/smtpd[1254]: disconnect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:52:34 test postfix/submission/smtpd[1264]: connect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:52:34 test postfix/trivial-rewrite[1301]: warning: do not list domain test.ua in BOTH mydestination and virtual_mailbox_domains
Sep  6 13:52:34 test postfix/trivial-rewrite[1301]: warning: do not list domain test.ua in BOTH mydestination and virtual_mailbox_domains
Sep  6 13:52:34 test postfix/submission/smtpd[1264]: DF4B11285B7: client=DESKTOP-03LCBEV[192.168.1.127], sasl_method=PLAIN, sasl_username=qqq@test.ua
Sep  6 13:52:34 test postfix/cleanup[1302]: DF4B11285B7: message-id=<55EC1AEF.1020003@test.ua>
Sep  6 13:52:34 test postfix/qmgr[1131]: DF4B11285B7: from=<qqq@test.ua>, size=541, nrcpt=1 (queue active)
Sep  6 13:52:34 test postfix/submission/smtpd[1264]: disconnect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:52:37 test amavis[1013]: (01013-01) (!)connect to [127.0.0.1]:10027 failed, attempt #1: Can't connect to socket [127.0.0.1]:10027 using module IO::Socket::IP: Connection refused
Sep  6 13:52:37 test amavis[1013]: (01013-01) (!)9xOrVBAocDdZ FWD from <qqq@test.ua> -> <zzz@test.ua>,  451 4.5.0 From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01013-01
Sep  6 13:52:37 test amavis[1013]: (01013-01) Blocked MTA-BLOCKED {TempFailedInternal}, ORIGINATING/MYNETS LOCAL [192.168.1.127]:64141 <qqq@test.ua> -> <zzz@test.ua>, Queue-ID: DF4B11285B7, Message-ID: <55EC1AEF.1020003@test.ua>, mail_id: 9xOrVBAocDdZ, Hits: 2.165, size: 541, 2305 ms
Sep  6 13:52:37 test postfix/smtp[1303]: DF4B11285B7: to=<zzz@test.ua>, relay=127.0.0.1[127.0.0.1]:10026, delay=2.4, delays=0.07/0.01/0.01/2.3, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=01013-01 - Temporary MTA failure on relaying, From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01013-01 (in reply to end of DATA command))
Sep  6 13:53:29 test postfix/submission/smtpd[1254]: connect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:53:29 test postfix/trivial-rewrite[1301]: warning: do not list domain test.ua in BOTH mydestination and virtual_mailbox_domains
Sep  6 13:53:29 test postfix/trivial-rewrite[1301]: warning: do not list domain test.ua in BOTH mydestination and virtual_mailbox_domains
Sep  6 13:53:29 test postfix/submission/smtpd[1254]: 6082B1285B9: client=DESKTOP-03LCBEV[192.168.1.127], sasl_method=PLAIN, sasl_username=qqq@test.ua
Sep  6 13:53:29 test postfix/cleanup[1302]: 6082B1285B9: message-id=<55EC1B26.3000201@test.ua>
Sep  6 13:53:29 test postfix/qmgr[1131]: 6082B1285B9: from=<qqq@test.ua>, size=540, nrcpt=1 (queue active)
Sep  6 13:53:29 test postfix/submission/smtpd[1254]: disconnect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:53:31 test amavis[1012]: (01012-02) (!)connect to [127.0.0.1]:10027 failed, attempt #1: Can't connect to socket [127.0.0.1]:10027 using module IO::Socket::IP: Connection refused
Sep  6 13:53:31 test amavis[1012]: (01012-02) (!)T9ge96GpSnCq FWD from <qqq@test.ua> -> <zzz@test.ua>,  451 4.5.0 From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01012-02
Sep  6 13:53:31 test amavis[1012]: (01012-02) Blocked MTA-BLOCKED {TempFailedInternal}, ORIGINATING/MYNETS LOCAL [192.168.1.127]:64149 <qqq@test.ua> -> <zzz@test.ua>, Queue-ID: 6082B1285B9, Message-ID: <55EC1B26.3000201@test.ua>, mail_id: T9ge96GpSnCq, Hits: 2.165, size: 540, 2311 ms
Sep  6 13:53:31 test postfix/smtp[1303]: 6082B1285B9: to=<zzz@test.ua>, relay=127.0.0.1[127.0.0.1]:10026, delay=2.3, delays=0.01/0/0/2.3, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=01012-02 - Temporary MTA failure on relaying, From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01012-02 (in reply to end of DATA command))
Sep  6 13:53:44 test postfix/submission/smtpd[1264]: connect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:53:45 test postfix/submission/smtpd[1264]: 351F71285BB: client=DESKTOP-03LCBEV[192.168.1.127], sasl_method=PLAIN, sasl_username=qqq@test.ua
Sep  6 13:53:45 test postfix/cleanup[1302]: 351F71285BB: message-id=<55EC1B36.50709@test.ua>
Sep  6 13:53:45 test postfix/qmgr[1131]: 351F71285BB: from=<qqq@test.ua>, size=546, nrcpt=1 (queue active)
Sep  6 13:53:45 test postfix/submission/smtpd[1264]: disconnect from DESKTOP-03LCBEV[192.168.1.127]
Sep  6 13:53:47 test amavis[1013]: (01013-02) (!)connect to [127.0.0.1]:10027 failed, attempt #1: Can't connect to socket [127.0.0.1]:10027 using module IO::Socket::IP: Connection refused
Sep  6 13:53:47 test amavis[1013]: (01013-02) (!)aVQdmyVpVV1S FWD from <qqq@test.ua> -> <postmaster@test.km>,  451 4.5.0 From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01013-02
Sep  6 13:53:47 test amavis[1013]: (01013-02) Blocked MTA-BLOCKED {TempFailedInternal}, ORIGINATING/MYNETS LOCAL [192.168.1.127]:64150 <qqq@test.ua> -> <postmaster@test.km>, Queue-ID: 351F71285BB, Message-ID: <55EC1B36.50709@test.ua>, mail_id: aVQdmyVpVV1S, Hits: 2.165, size: 546, 2260 ms
Sep  6 13:53:47 test postfix/smtp[1303]: 351F71285BB: to=<postmaster@test.km>, relay=127.0.0.1[127.0.0.1]:10026, delay=2.3, delays=0.01/0/0/2.3, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=01013-02 - Temporary MTA failure on relaying, From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01013-02 (in reply to end of DATA command))

17

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

3m wrote:

Sep  6 13:41:04 test postfix/trivial-rewrite[1302]: warning: do not list domain test.ua in BOTH mydestination and virtual_mailbox_domains

Please read this log line and fix it.

3m wrote:

Sep  6 13:50:54 test amavis[1012]: (01012-01) (!)connect to [127.0.0.1]:10027 failed, attempt #1: Can't connect to socket [127.0.0.1]:10027 using module IO::Socket::IP: Connection refused

Why was it trying to connect to port 10027? iRedMail doesn't configure Amavisd to listen on or use this port number. Please check your Amavisd config file, show us settings related to port 10027.

18

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

I did not make a changes !         /usr/local/etc/amavisd.conf

use strict;

# a minimalistic configuration file for amavisd-new with all necessary settings
#
#   see amavisd.conf-default for a list of all variables with their defaults;
#   for more details see documentation in INSTALL, README_FILES/*
#   and at http://www.ijs.si/software/amavisd/amav … -docs.html


# COMMONLY ADJUSTED SETTINGS:

# @bypass_virus_checks_maps = (1);  # controls running of anti-virus code
# @bypass_spam_checks_maps  = (1);  # controls running of anti-spam code
# $bypass_decode_parts = 1;         # controls running of decoders&dearchivers

#$max_servers = 2;            # num of pre-forked children (2..30 is common), -m
$daemon_user  = 'vscan';     # (no default;  customary: vscan or amavis), -u
$daemon_group = 'vscan';     # (no default;  customary: vscan or amavis), -g

$mydomain = "test.ua";    # = 'example.com';   # a convenient default for other settings

# $MYHOME = '/var/amavis';   # a convenient default for other settings, -H
$TEMPBASE = "$MYHOME/tmp";   # working directory, needs to exist, -T
$ENV{TMPDIR} = $TEMPBASE;    # environment variable TMPDIR, used by SA, etc.
$QUARANTINEDIR = '/var/virusmails';  # -Q
# $quarantine_subdir_levels = 1;  # add level of subdirs to disperse quarantine
# $release_format = 'resend';     # 'attach', 'plain', 'resend'
# $report_format  = 'arf';        # 'attach', 'plain', 'resend', 'arf'

# $daemon_chroot_dir = $MYHOME;   # chroot directory or undef, -R

# $db_home   = "$MYHOME/db";      # dir for bdb nanny/cache/snmp databases, -D
# $helpers_home = "$MYHOME/var";  # working directory for SpamAssassin, -S
# $lock_file = "$MYHOME/var/amavisd.lock";  # -L
# $pid_file  = "$MYHOME/var/amavisd.pid";   # -P
#NOTE: create directories $MYHOME/tmp, $MYHOME/var, $MYHOME/db manually

$log_level = 0;              # verbosity 0..5, -d
$log_recip_templ = undef;    # disable by-recipient level-0 log entries
$do_syslog = 1;              # log via syslogd (preferred)
$syslog_facility = 'mail';   # Syslog facility as a string
           # e.g.: mail, daemon, user, local0, ... local7

$enable_db = 1;              # enable use of BerkeleyDB/libdb (SNMP and nanny)
# $enable_zmq = 1;           # enable use of ZeroMQ (SNMP and nanny)
$nanny_details_level = 2;    # nanny verbosity: 1: traditional, 2: detailed
$enable_dkim_verification = 1;  # enable DKIM signatures verification
$enable_dkim_signing = 1;    # load DKIM signing code, keys defined by dkim_key

@local_domains_maps = 1;

@mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
                  10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );

$unix_socketname = "$MYHOME/amavisd.sock";  # amavisd-release or amavis-milter
               # option(s) -p overrides $inet_socket_port and $unix_socketname

$inet_socket_port = [10024, 10026, 9998];
# $inet_socket_port = [10024, 10026, 9998];

$policy_bank{'MYNETS'} = {   # mail originating from @mynetworks
  originating => 1,  # is true in MYNETS by default, but let's make it explicit
  os_fingerprint_method => undef,  # don't query p0f for internal clients
  allow_disclaimers => 1, # enables disclaimer insertion if available
};

# it is up to MTA to re-route mail from authenticated roaming users or
# from internal hosts to a dedicated TCP port (such as 10026) for filtering
$interface_policy{'10026'} = 'ORIGINATING';

$policy_bank{'ORIGINATING'} = {  # mail supposedly originating from our users
  originating => 1,  # declare that mail was submitted by our smtp client
  allow_disclaimers => 1,  # enables disclaimer insertion if available
  # notify administrator of locally originating malware
  virus_admin_maps => ["virusalert\@$mydomain"],
  spam_admin_maps  => ["virusalert\@$mydomain"],
  warnbadhsender   => 1,
  # forward to a smtpd service providing DKIM signing service
  forward_method => 'smtp:[127.0.0.1]:10027',
  # force MTA conversion to 7-bit (e.g. before DKIM signing)
  smtpd_discard_ehlo_keywords => ['8BITMIME'],
  bypass_banned_checks_maps => [1],  # allow sending any file names and types
  terminate_dsn_on_notify_success => 0,  # don't remove NOTIFY=SUCCESS option
};

$interface_policy{'SOCK'} = 'AM.PDP-SOCK'; # only applies with $unix_socketname

# Use with amavis-release over a socket or with Petr Rehor's amavis-milter.c
# (with amavis-milter.c from this package or old amavis.c client use 'AM.CL'):
$policy_bank{'AM.PDP-SOCK'} = {
  protocol => 'AM.PDP',
  auth_required_release => 0,  # do not require secret_id for amavisd-release
};

$sa_tag_level_deflt  = 2.0;  # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 6.2;  # add 'spam detected' headers at that level
$sa_kill_level_deflt = 6.9;  # triggers spam evasive actions (e.g. blocks mail)
$sa_dsn_cutoff_level = 10;   # spam level beyond which a DSN is not sent
$sa_crediblefrom_dsn_cutoff_level = 18; # likewise, but for a likely valid From
# $sa_quarantine_cutoff_level = 25; # spam level beyond which quarantine is off
$penpals_bonus_score = 8;    # (no effect without a @storage_sql_dsn database)
$penpals_threshold_high = $sa_kill_level_deflt;  # don't waste time on hi spam
$bounce_killer_score = 100;  # spam score points to add for joe-jobbed bounces

$sa_mail_body_size_limit = 400*1024; # don't waste time on SA if mail is larger
$sa_local_tests_only = 0;    # only tests which do not require internet access?

# @lookup_sql_dsn =
#   ( ['DBI:mysql:database=mail;host=127.0.0.1;port=3306', 'user1', 'passwd1'],
#     ['DBI:mysql:database=mail;host=host2', 'username2', 'password2'],
#     ["DBI:SQLite:dbname=$MYHOME/sql/mail_prefs.sqlite", '', ''] );
# @storage_sql_dsn = @lookup_sql_dsn;  # none, same, or separate database
# @storage_redis_dsn = ( {server=>'127.0.0.1:6379', db_id=>1} );
# $redis_logging_key = 'amavis-log';
# $redis_logging_queue_size_limit = 300000;  # about 250 MB / 100000

# $timestamp_fmt_mysql = 1; # if using MySQL *and* msgs.time_iso is TIMESTAMP;
#   defaults to 0, which is good for non-MySQL or if msgs.time_iso is CHAR(16)

$virus_admin               = "virusalert\@$mydomain";  # notifications recip.

$mailfrom_notify_admin     = "virusalert\@$mydomain";  # notifications sender
$mailfrom_notify_recip     = "virusalert\@$mydomain";  # notifications sender
$mailfrom_notify_spamadmin = "spam.police\@$mydomain"; # notifications sender
$mailfrom_to_quarantine = ''; # null return path; uses original sender if undef

@addr_extension_virus_maps      = ('virus');
@addr_extension_banned_maps     = ('banned');
@addr_extension_spam_maps       = ('spam');
@addr_extension_bad_header_maps = ('badh');
# $recipient_delimiter = '+';  # undef disables address extensions altogether
# when enabling addr extensions do also Postfix/main.cf: recipient_delimiter=+

$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';
# $dspam = 'dspam';

$MAXLEVELS = 14;
$MAXFILES = 3000;
$MIN_EXPANSION_QUOTA =      100*1024;  # bytes  (default undef, not enforced)
$MAX_EXPANSION_QUOTA = 500*1024*1024;  # bytes  (default undef, not enforced)

$sa_spam_subject_tag = '***Spam*** ';
$defang_virus  = 1;  # MIME-wrap passed infected mail
$defang_banned = 0;  # MIME-wrap passed mail containing banned name
# for defanging bad headers only turn on certain minor contents categories:
$defang_by_ccat{CC_BADH.",3"} = 1;  # NUL or CR character in header
$defang_by_ccat{CC_BADH.",5"} = 1;  # header line longer than 998 characters
$defang_by_ccat{CC_BADH.",6"} = 1;  # header field syntax error


# OTHER MORE COMMON SETTINGS (defaults may suffice):

# $myhostname = 'host.example.com';  # must be a fully-qualified domain name!

# $notify_method  = 'smtp:[127.0.0.1]:10025';
# $forward_method = 'smtp:[127.0.0.1]:10025';  # set to undef with milter!

# $final_virus_destiny      = D_DISCARD;
# $final_banned_destiny     = D_DISCARD;
# $final_spam_destiny       = D_PASS;  #!!!  D_DISCARD / D_REJECT
# $final_bad_header_destiny = D_PASS;
# $bad_header_quarantine_method = undef;

# $os_fingerprint_method = 'p0f:*:2345';  # to query p0f-analyzer.pl

## hierarchy by which a final setting is chosen:
##   policy bank (based on port or IP address) -> *_by_ccat
##   *_by_ccat (based on mail contents) -> *_maps
##   *_maps (based on recipient address) -> final configuration value


# SOME OTHER VARIABLES WORTH CONSIDERING (see amavisd.conf-default for all)

# $warnbadhsender,
# $warnvirusrecip, $warnbannedrecip, $warnbadhrecip, (or @warn*recip_maps)
#
# @bypass_virus_checks_maps, @bypass_spam_checks_maps,
# @bypass_banned_checks_maps, @bypass_header_checks_maps,
#
# @virus_lovers_maps, @spam_lovers_maps,
# @banned_files_lovers_maps, @bad_header_lovers_maps,
#
# @blacklist_sender_maps, @score_sender_maps,
#
# $clean_quarantine_method, $virus_quarantine_to, $banned_quarantine_to,
# $bad_header_quarantine_to, $spam_quarantine_to,
#
# $defang_bad_header, $defang_undecipherable, $defang_spam


# REMAINING IMPORTANT VARIABLES ARE LISTED HERE BECAUSE OF LONGER ASSIGNMENTS

@keep_decoded_original_maps = (new_RE(
  qr'^MAIL$',                # let virus scanner see full original message
  qr'^MAIL-UNDECIPHERABLE$', # same as ^MAIL$ if mail is undecipherable
  qr'^(ASCII(?! cpio)|text|uuencoded|xxencoded|binhex)'i,
# qr'^Zip archive data',     # don't trust Archive::Zip
));


$banned_filename_re = new_RE(

### BLOCKED ANYWHERE
# qr'^UNDECIPHERABLE$',  # is or contains any undecipherable components
  qr'^\.(exe-ms|dll)$',                   # banned file(1) types, rudimentary
# qr'^\.(exe|lha|cab|dll)$',              # banned file(1) types

### BLOCK THE FOLLOWING, EXCEPT WITHIN UNIX ARCHIVES:
# [ qr'^\.(gz|bz2)$'             => 0 ],  # allow any in gzip or bzip2
  [ qr'^\.(rpm|cpio|tar)$'       => 0 ],  # allow any in Unix-type archives

  qr'.\.(pif|scr)$'i,                     # banned extensions - rudimentary
# qr'^\.zip$',                            # block zip type

### BLOCK THE FOLLOWING, EXCEPT WITHIN ARCHIVES:
# [ qr'^\.(zip|rar|arc|arj|zoo)$'=> 0 ],  # allow any within these archives

  qr'^application/x-msdownload$'i,        # block these MIME types
  qr'^application/x-msdos-program$'i,
  qr'^application/hta$'i,

# qr'^message/partial$'i,         # rfc2046 MIME type
# qr'^message/external-body$'i,   # rfc2046 MIME type

# qr'^(application/x-msmetafile|image/x-wmf)$'i,  # Windows Metafile MIME type
# qr'^\.wmf$',                            # Windows Metafile file(1) type

  # block certain double extensions in filenames
  qr'^(?!cid:).*\.[^./]*[A-Za-z][^./]*\.\s*(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)[.\s]*$'i,

# qr'\{[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}\}?'i, # Class ID CLSID, strict
# qr'\{[0-9a-z]{4,}(-[0-9a-z]{4,}){0,7}\}?'i, # Class ID extension CLSID, loose

  qr'.\.(exe|vbs|pif|scr|cpl)$'i,             # banned extension - basic
# qr'.\.(exe|vbs|pif|scr|cpl|bat|cmd|com)$'i, # banned extension - basic+cmd
# qr'.\.(ade|adp|app|bas|bat|chm|cmd|com|cpl|crt|emf|exe|fxp|grp|hlp|hta|
#        inf|ini|ins|isp|js|jse|lib|lnk|mda|mdb|mde|mdt|mdw|mdz|msc|msi|
#        msp|mst|ocx|ops|pcd|pif|prg|reg|scr|sct|shb|shs|sys|vb|vbe|vbs|vxd|
#        wmf|wsc|wsf|wsh)$'ix,                # banned extensions - long
# qr'.\.(asd|asf|asx|url|vcs|wmd|wmz)$'i,     # consider also
# qr'.\.(ani|cur|ico)$'i,                 # banned cursors and icons filename
# qr'^\.ani$',                            # banned animated cursor file(1) type
# qr'.\.(mim|b64|bhx|hqx|xxe|uu|uue)$'i,  # banned extension - WinZip vulnerab.
);
# See http://support.microsoft.com/default.as … US;q262631
# and http://www.cknow.com/vtutor/vtextensions.htm


# ENVELOPE SENDER SOFT-WHITELISTING / SOFT-BLACKLISTING

@score_sender_maps = ({ # a by-recipient hash lookup table,
                        # results from all matching recipient tables are summed

# ## per-recipient personal tables  (NOTE: positive: black, negative: white)
# 'user1@example.com'  => [{'bla-mobile.press@example.com' => 10.0}],
# 'user3@example.com'  => [{'.ebay.com'                 => -3.0}],
# 'user4@example.com'  => [{'cleargreen@cleargreen.com' => -7.0,
#                           '.cleargreen.com'           => -5.0}],

  ## site-wide opinions about senders (the '.' matches any recipient)
  '.' => [  # the _first_ matching sender determines the score boost

   new_RE(  # regexp-type lookup table, just happens to be all soft-blacklist
    [qr'^(bulkmail|offers|cheapbenefits|earnmoney|foryou)@'i         => 5.0],
    [qr'^(greatcasino|investments|lose_weight_today|market\.alert)@'i=> 5.0],
    [qr'^(money2you|MyGreenCard|new\.tld\.registry|opt-out|opt-in)@'i=> 5.0],
    [qr'^(optin|saveonlsmoking2002k|specialoffer|specialoffers)@'i   => 5.0],
    [qr'^(stockalert|stopsnoring|wantsome|workathome|yesitsfree)@'i  => 5.0],
    [qr'^(your_friend|greatoffers)@'i                                => 5.0],
    [qr'^(inkjetplanet|marketopt|MakeMoney)\d*@'i                    => 5.0],
   ),

#  read_hash("/var/amavis/sender_scores_sitewide"),

   { # a hash-type lookup table (associative array)
     'nobody@cert.org'                        => -3.0,
     'cert-advisory@us-cert.gov'              => -3.0,
     'owner-alert@iss.net'                    => -3.0,
     'slashdot@slashdot.org'                  => -3.0,
     'securityfocus.com'                      => -3.0,
     'ntbugtraq@listserv.ntbugtraq.com'       => -3.0,
     'security-alerts@linuxsecurity.com'      => -3.0,
     'mailman-announce-admin@python.org'      => -3.0,
     'amavis-user-admin@lists.sourceforge.net'=> -3.0,
     'amavis-user-bounces@lists.sourceforge.net' => -3.0,
     'spamassassin.apache.org'                => -3.0,
     'notification-return@lists.sophos.com'   => -3.0,
     'owner-postfix-users@postfix.org'        => -3.0,
     'owner-postfix-announce@postfix.org'     => -3.0,
     'owner-sendmail-announce@lists.sendmail.org'   => -3.0,
     'sendmail-announce-request@lists.sendmail.org' => -3.0,
     'donotreply@sendmail.org'                => -3.0,
     'ca+envelope@sendmail.org'               => -3.0,
     'noreply@freshmeat.net'                  => -3.0,
     'owner-technews@postel.acm.org'          => -3.0,
     'ietf-123-owner@loki.ietf.org'           => -3.0,
     'cvs-commits-list-admin@gnome.org'       => -3.0,
     'rt-users-admin@lists.fsck.com'          => -3.0,
     'clp-request@comp.nus.edu.sg'            => -3.0,
     'surveys-errors@lists.nua.ie'            => -3.0,
     'emailnews@genomeweb.com'                => -5.0,
     'yahoo-dev-null@yahoo-inc.com'           => -3.0,
     'returns.groups.yahoo.com'               => -3.0,
     'clusternews@linuxnetworx.com'           => -3.0,
     lc('lvs-users-admin@LinuxVirtualServer.org')    => -3.0,
     lc('owner-textbreakingnews@CNNIMAIL12.CNN.COM') => -5.0,

     # soft-blacklisting (positive score)
     'sender@example.net'                     =>  3.0,
     '.example.net'                           =>  1.0,

   },
  ],  # end of site-wide tables
});


@decoders = (
  ['mail', \&do_mime_decode],
# [[qw(asc uue hqx ync)], \&do_ascii],  # not safe
  ['F',    \&do_uncompress, ['unfreeze', 'freeze -d', 'melt', 'fcat'] ],
  ['Z',    \&do_uncompress, ['uncompress', 'gzip -d', 'zcat'] ],
  ['gz',   \&do_uncompress, 'gzip -d'],
  ['gz',   \&do_gunzip],
  ['bz2',  \&do_uncompress, 'bzip2 -d'],
  ['xz',   \&do_uncompress,
           ['xzdec', 'xz -dc', 'unxz -c', 'xzcat'] ],
  ['lzma', \&do_uncompress,
           ['lzmadec', 'xz -dc --format=lzma',
            'lzma -dc', 'unlzma -c', 'lzcat', 'lzmadec'] ],
  ['lrz',  \&do_uncompress,
           ['lrzip -q -k -d -o -', 'lrzcat -q -k'] ],
  ['lzo',  \&do_uncompress, 'lzop -d'],
  ['lz4',  \&do_uncompress, ['lz4c -d'] ],
  ['rpm',  \&do_uncompress, ['rpm2cpio.pl', 'rpm2cpio'] ],
  [['cpio','tar'], \&do_pax_cpio, ['pax', 'gcpio', 'cpio'] ],
           # ['/usr/local/heirloom/usr/5bin/pax', 'pax', 'gcpio', 'cpio']
  ['deb',  \&do_ar, 'ar'],
# ['a',    \&do_ar, 'ar'],  # unpacking .a seems an overkill
  ['rar',  \&do_unrar, ['unrar', 'rar'] ],
  ['arj',  \&do_unarj, ['unarj', 'arj'] ],
  ['arc',  \&do_arc,   ['nomarch', 'arc'] ],
  ['zoo',  \&do_zoo,   ['zoo', 'unzoo'] ],
  ['doc',  \&do_ole,   'ripole'],
  ['cab',  \&do_cabextract, 'cabextract'],
  ['tnef', \&do_tnef_ext, 'tnef'],
  ['tnef', \&do_tnef],
# ['lha',  \&do_lha,   'lha'],  # not safe, use 7z instead
# ['sit',  \&do_unstuff, 'unstuff'],  # not safe
  [['zip','kmz'], \&do_7zip,  ['7za', '7z'] ],
  [['zip','kmz'], \&do_unzip],
  ['7z',   \&do_7zip,  ['7zr', '7za', '7z'] ],
  [[qw(gz bz2 Z tar)],
           \&do_7zip,  ['7za', '7z'] ],
  [[qw(xz lzma jar cpio arj rar swf lha iso cab deb rpm)],
           \&do_7zip,  '7z' ],
  ['exe',  \&do_executable, ['unrar','rar'], 'lha', ['unarj','arj'] ],
);
$sa_debug = 0;
# Set hostname.
$myhostname = "test.ua";
$localhost_name = $myhostname;

# Set listen IP/PORT.
$notify_method  = 'smtp:[127.0.0.1]:10025';
$forward_method = 'smtp:[127.0.0.1]:10025';

@av_scanners = (
    #### http://www.clamav.net/
    ['ClamAV-clamd',
    \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.sock"],
    qr/\bOK$/, qr/\bFOUND$/,
    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
);

@av_scanners_backup = (
    ### http://www.clamav.net/   - backs up clamd or Mail::ClamAV
    ['ClamAV-clamscan', 'clamscan',
    "--stdout --disable-summary -r --tempdir=$TEMPBASE {}", [0], [1],
    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
);

#
# Port used to release quarantined mails.
#
$interface_policy{'9998'} = 'AM.PDP-INET';
$policy_bank{'AM.PDP-INET'} = {
    protocol => 'AM.PDP',       # select Amavis policy delegation protocol
    inet_acl => [qw( 127.0.0.1 [::1] )],    # restrict access to these IP addresses
    auth_required_release => 1,    # 0 - don't require secret_id for amavisd-release
    #log_level => 4,
    #always_bcc_by_ccat => {CC_CLEAN, 'admin@example.com'},
};

# Set default action.
# Available actions: D_PASS, D_BOUNCE, D_REJECT, D_DISCARD.
$final_virus_destiny      = D_DISCARD;
$final_banned_destiny     = D_BOUNCE;
$final_spam_destiny       = D_PASS;
$final_bad_header_destiny = D_PASS;

#########################
# Quarantine mails.
#

# Where to store quarantined mail message:
#   - 'local:spam-%i-%m', quarantine mail on local file system.
#   - 'sql:', quarantine mail in SQL server specified in @storage_sql_dsn.
#   - undef, do not quarantine mail.

# Bad header.
$bad_header_quarantine_method = undef;
#$bad_header_quarantine_method = 'sql:';
#$bad_header_quarantine_to = 'bad-header-quarantine';

# SPAM.
$spam_quarantine_method = undef;
#$spam_quarantine_method = 'sql:';
#$spam_quarantine_to = 'spam-quarantine';

# Virus
$virus_quarantine_to     = 'virus-quarantine';
$virus_quarantine_method = 'sql:';

# Banned
$banned_files_quarantine_method = undef;
#$banned_files_quarantine_method = 'sql:';
#$banned_quarantine_to = 'banned-quarantine';

#########################
# Quarantine CLEAN mails.
# Don't forget to enable clean quarantine in policy bank 'MYUSERS'.
#
#$clean_quarantine_method = 'sql:';
#$clean_quarantine_to = 'clean-quarantine';

$sql_allow_8bit_address = 1;
$timestamp_fmt_mysql = 1;

# a string to prepend to Subject (for local recipients only) if mail could
# not be decoded or checked entirely, e.g. due to password-protected archives
#$undecipherable_subject_tag = '***UNCHECKED*** ';  # undef disables it
$undecipherable_subject_tag = undef;
# Hope to fix 'nested MAIL command' issue on high load server.
$smtp_connection_cache_enable = 0;

# The default set of header fields to be signed can be controlled
# by setting %signed_header_fields elements to true (to sign) or
# to false (not to sign). Keys must be in lowercase, e.g.:
# 0 -> off
# 1 -> on
$signed_header_fields{'received'} = 0;
$signed_header_fields{'to'} = 1;

# Add dkim_key here.
dkim_key("test.km", "dkim", "/var/lib/dkim/test.km.pem");

# Note that signing mail for subdomains with a key of a parent
# domain is treated by recipients as a third-party key, which
# may 'hold less merit' in their eyes. If one has a choice,
# it is better to publish a key for each domain (e.g. host1.a.cn)
# if mail is really coming from it. Sharing a pem file
# for multiple domains may be acceptable, so you don't need
# to generate a different key for each subdomain, but you
# do need to publish it in each subdomain. It is probably
# easier to avoid sending addresses like host1.a.cn and
# always use a parent domain (a.cn) in 'From:', thus
# avoiding the issue altogether.
#dkim_key("host1.test.km", "dkim", "/var/lib/dkim/test.km.pem");
#dkim_key("host3.test.km", "dkim", "/var/lib/dkim/test.km.pem");

# Add new dkim_key for other domain.
#dkim_key('Your_New_Domain_Name', 'dkim', 'Your_New_Pem_File');

@dkim_signature_options_bysender_maps = ( {
    # ------------------------------------
    # For domain: test.km.
    # ------------------------------------
    # 'd' defaults to a domain of an author/sender address,
    # 's' defaults to whatever selector is offered by a matching key

    #'postmaster@test.km'    => { d => "test.km", a => 'rsa-sha256', ttl =>  7*24*3600 },
    #"spam-reporter@test.km"    => { d => "test.km", a => 'rsa-sha256', ttl =>  7*24*3600 },

    # explicit 'd' forces a third-party signature on foreign (hosted) domains
    "test.km"  => { d => "test.km", a => 'rsa-sha256', ttl => 10*24*3600 },
    #"host1.test.km"  => { d => "host1.test.km", a => 'rsa-sha256', ttl => 10*24*3600 },
    #"host2.test.km"  => { d => "host2.test.km", a => 'rsa-sha256', ttl => 10*24*3600 },
    # ---- End domain: test.km ----

    # catchall defaults
    '.' => { a => 'rsa-sha256', c => 'relaxed/simple', ttl => 30*24*3600 },
} );
# ------------ Disclaimer Setting ---------------
# Uncomment this line to enable singing disclaimer in outgoing mails.
#$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];

# Program used to signing disclaimer in outgoing mails.
$altermime = '/usr/local/bin/altermime';

# Disclaimer in plain text formart.
@altermime_args_disclaimer = qw(--disclaimer=/usr/local/etc/postfix/disclaimer/_OPTION_.txt --disclaimer-html=/usr/local/etc/postfix/disclaimer/_OPTION_.txt --force-for-bad-html);

@disclaimer_options_bysender_maps = ({
    # Per-domain disclaimer setting: /usr/local/etc/postfix/disclaimer/host1.iredmail.org.txt
    #'host1.iredmail.org' => 'host1.iredmail.org',

    # Sub-domain disclaimer setting: /usr/local/etc/postfix/disclaimer/iredmail.org.txt
    #'.iredmail.org'      => 'iredmail.org',

    # Per-user disclaimer setting: /usr/local/etc/postfix/disclaimer/boss.iredmail.org.txt
    #'boss@iredmail.org'  => 'boss.iredmail.org',

    # Catch-all disclaimer setting: /usr/local/etc/postfix/disclaimer/default.txt
    '.' => 'default',
},);
# ------------ End Disclaimer Setting ---------------
# Reporting and quarantining.
@storage_sql_dsn = (
    ['DBI:mysql:database=amavisd;host=127.0.0.1;port=3306', 'amavisd', 'Gg93cekkzjzs4TKbJ1g7eNUaksourL'],
);

# Lookup for per-recipient, per-domain and global policy.
@lookup_sql_dsn = @storage_sql_dsn;
# Don't send email with subject "UNCHECKED contents in mail FROM xxx".
delete $admin_maps_by_ccat{&CC_UNCHECKED};

# Do not notify administrator about SPAM/VIRUS from remote servers.
$virus_admin = undef;
$spam_admin = undef;
$banned_admin = undef;
$bad_header_admin = undef;

# Num of pre-forked children.
# WARNING: it must match (equal to or larger than) the number set in
# /etc/postfix/master.cf "maxproc" column for the 'smtp-amavis' service.
$max_servers = 2;

# Enable DKIM signing/verification
$enable_dkim_verification = 1;
$enable_dkim_signing = 1;

# Amavisd log level. Verbosity: 0, 1, 2, 3, 4, 5, -d.
$log_level = 0;
# SpamAssassin debugging (require $log_level). Default if off (0).
$sa_debug = 0;

# Listen on specified addresses.
$inet_socket_bind = ['127.0.0.1'];

1;  # insure a defined return

19

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

Local Address          Foreign Address        Proto Recv-Q Send-Q (state)
test.ntp               *.*                    udp4       0      0
localhost.ntp          *.*                    udp6       0      0
fe80:3::1.ntp          *.*                    udp6       0      0
test.ua.ntp            *.*                    udp4       0      0
test.ua.10024          *.*                    tcp4       0      0 LISTEN
test.ua.10026          *.*                    tcp4       0      0 LISTEN
test.ua.9998           *.*                    tcp4       0      0 LISTEN
test.ua.sieve          *.*                    tcp4       0      0 LISTEN
test.ua.24             *.*                    tcp4       0      0 LISTEN
test.ua.10025          *.*                    tcp4       0      0 LISTEN
test.ua.7777           *.*                    tcp4       0      0 LISTEN
test.ssh               DESKTOP-03LCBEV.64042  tcp4       0      0 ESTABLISHED
test.ua.37341          test.ua.mysql          tcp4       0      0 ESTABLISHED
test.ua.mysql          test.ua.37341          tcp4       0      0 ESTABLISHED
test.ua.49154          test.ua.mysql          tcp4       0      0 ESTABLISHED
test.ua.mysql          test.ua.49154          tcp4       0      0 ESTABLISHED
test.imap              DESKTOP-03LCBEV.49486  tcp4       0      0 ESTABLISHED
test.https             DESKTOP-03LCBEV.50058  tcp4       0      0 ESTABLISHED
test.https             DESKTOP-03LCBEV.50060  tcp4       0      0 ESTABLISHED
test.ua.17996          test.ua.mysql          tcp4       0      0 TIME_WAIT

20

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

Sep  6 22:01:18 test postfix/cleanup[4435]: E304D1285C4: message-id=<ae7484d76e1c01c1c2ad39afd468c6fa@test.km>
Sep  6 22:01:18 test postfix/qmgr[1131]: E304D1285C4: from=<postmaster@test.km>, size=496, nrcpt=1 (queue active)
Sep  6 22:01:18 test roundcube: <ku5c7dth> User postmaster@test.km [192.168.1.127]; Message for ccc@mmm.ua; 250: 2.0.0 Ok: queued as E304D1285C4
Sep  6 22:01:18 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 489
Sep  6 22:01:18 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 263
Sep  6 22:01:18 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 492
Sep  6 22:01:18 test roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/local/www/roundcube/vendor/pear/net_smtp/Net/SMTP.php on line 495
Sep  6 22:01:18 test postfix/submission/smtpd[4433]: disconnect from test.ua[127.0.0.1]
Sep  6 22:01:20 test amavis[4292]: (04292-04) (!)connect to [127.0.0.1]:10027 failed, attempt #1: Can't connect to socket [127.0.0.1]:10027 using module IO::Socket::IP: Connection refused
Sep  6 22:01:20 test amavis[4292]: (04292-04) (!)QzEFsZ7Kj8jx FWD from <postmaster@test.km> -> <ccc@mmm.ua>,  451 4.5.0 From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=04292-04
Sep  6 22:01:20 test amavis[4292]: (04292-04) Blocked MTA-BLOCKED {TempFailedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:19420 <postmaster@test.km> -> <ccc@mmm.ua>, Queue-ID: E304D1285C4, Message-ID: <ae7484d76e1c01c1c2ad39afd468c6fa@test.km>, mail_id: QzEFsZ7Kj8jx, Hits: 2.199, size: 496, dkim_new=dkim:test.km, 2390 ms
Sep  6 22:01:20 test postfix/smtp[4420]: E304D1285C4: to=<ccc@mmm.ua>, relay=127.0.0.1[127.0.0.1]:10026, delay=2.5, delays=0.13/0.01/0.01/2.4, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=04292-04 - Temporary MTA failure on relaying, From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=04292-04 (in reply to end of DATA command))

21

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

  forward_method => 'smtp:[127.0.0.1]:10027',

Comment out this line in Amavisd config file, restart Amavisd and try again.

22

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

after restart Amavisd

Sep  7 08:26:22 test postfix/submission/smtpd[1396]: connect from DESKTOP-03LCBEV[192.168.1.127]
Sep  7 08:26:23 test postfix/submission/smtpd[1396]: 00530128594: client=DESKTOP-03LCBEV[192.168.1.127], sasl_method=PLAIN, sasl_username=ccc@mmm.ua
Sep  7 08:26:23 test postfix/cleanup[1398]: 00530128594: message-id=<55ED1FFB.1090101@mmm.ua>
Sep  7 08:26:23 test postfix/qmgr[1148]: 00530128594: from=<ccc@mmm.ua>, size=673, nrcpt=1 (queue active)
Sep  7 08:26:23 test postfix/submission/smtpd[1396]: disconnect from DESKTOP-03LCBEV[192.168.1.127]
Sep  7 08:26:25 test amavis[1392]: (01392-01) (!)connect to [127.0.0.1]:10027 failed, attempt #1: Can't connect to socket [127.0.0.1]:10027 using module IO::Socket::IP: Connection refused
Sep  7 08:26:25 test amavis[1392]: (01392-01) (!)YMI1ir75eZsP FWD from <ccc@mmm.ua> -> <postmaster@test.km>,  451 4.5.0 From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01392-01
Sep  7 08:26:25 test amavis[1392]: (01392-01) Blocked MTA-BLOCKED {TempFailedInternal}, ORIGINATING/MYNETS LOCAL [192.168.1.127]:50793 <ccc@mmm.ua> -> <postmaster@test.km>, Queue-ID: 00530128594, Message-ID: <55ED1FFB.1090101@mmm.ua>, mail_id: YMI1ir75eZsP, Hits: 0.179, size: 705, 2697 ms
Sep  7 08:26:25 test postfix/smtp[1399]: 00530128594: to=<postmaster@test.km>, relay=127.0.0.1[127.0.0.1]:10026, delay=2.7, delays=0.02/0.01/0.02/2.7, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=01392-01 - Temporary MTA failure on relaying, From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:[127.0.0.1]:10027): id=01392-01 (in reply to end of DATA command))

23

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

do not read the last post, thanks it works

24

Re: FreeBSD fresh install ERROR 2002 (HY000): Can't connect to local MySQL

UPDATE: this was fixed today.
https://bitbucket.org/zhb/iredmail/comm … 01972985f2