1

Topic: Postfix Error 451 while sending and some more errors

Hi there,

1. i really like iRedMail and will "donate" after these bugs have gone and this server works, promised!

so iam on debian squeeze with 0.7.0 stable.installed w. mysql backend and installd postfixadmin later.
while sending a mail iam gettin this:

SMTP Error (451): Failed to add recipient "ms@netzxperts.de" (4.3.5 Server configuration problem)

my /var/log/mail.info say:

Apr  2 04:24:47 fornax amavis[1444]: No decoder for       .doc  tried: ripole
Apr  2 04:24:47 fornax amavis[1444]: No decoder for       .cab  tried: cabextract
Apr  2 04:24:47 fornax amavis[1444]: No decoder for       .tnef
Apr  2 04:24:47 fornax amavis[1444]: Internal decoder for .tnef
Apr  2 04:24:47 fornax amavis[1444]: No decoder for       .exe  tried: unrar-free; arj, unarj
Apr  2 04:24:47 fornax amavis[1444]: Using primary internal av scanner code for ClamAV-clamd
Apr  2 04:24:47 fornax amavis[1444]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Apr  2 04:24:47 fornax amavis[1444]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.42, libdb 4.8
Apr  2 04:24:49 fornax postfix-policyd: starting policyd v1.82
Apr  2 04:24:49 fornax postfix-policyd: connecting to mysql database: 127.0.0.1
Apr  2 04:24:49 fornax postfix-policyd: mysql_real_connect(): Can't connect to MySQL server on '127.0.0.1' (111)
Apr  2 04:24:55 fornax postfix/master[2235]: daemon started -- version 2.7.1, configuration /etc/postfix
Apr  2 04:25:49 fornax postfix-policyd: shutting down..
Apr  2 04:25:50 fornax postfix-policyd: starting policyd v1.82
Apr  2 04:25:50 fornax postfix-policyd: connecting to mysql database: 127.0.0.1
Apr  2 04:25:50 fornax postfix-policyd: connected..
Apr  2 04:26:19 fornax postfix/smtpd[2355]: connect from fornax.trend2buy.de[127.0.0.1]
Apr  2 04:26:19 fornax postfix/smtpd[2355]: warning: connect to 127.0.0.1:7777: Connection refused
Apr  2 04:26:19 fornax postfix/smtpd[2355]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Apr  2 04:26:20 fornax postfix/smtpd[2355]: warning: connect to 127.0.0.1:7777: Connection refused
Apr  2 04:26:20 fornax postfix/smtpd[2355]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Apr  2 04:26:20 fornax postfix/smtpd[2355]: NOQUEUE: reject: RCPT from fornax.trend2buy.de[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<info@trend2buy.de> to=<www@trend2buy.de> proto=ESMTP helo=<fornax.trend2buy.de>
Apr  2 04:26:20 fornax roundcube: Invalid response code received from server (451):
Apr  2 04:26:20 fornax roundcube: SMTP Error: SMTP error: Failed to add recipient 'www@trend2buy.de' in /usr/share/apache2/roundcubemail-0.5.1/program/steps/mail/func.inc on line 1491 (POST /mail/?_unlock=loading1301711179424?_task=mail&_action=send)
Apr  2 04:26:20 fornax postfix/smtpd[2355]: disconnect from fornax.trend2buy.de[127.0.0.1]
Apr  2 04:29:04 fornax postfix/smtpd[2372]: connect from 91-66-192-142-dynip.superkabel.de[91.66.192.142]
Apr  2 04:29:39 fornax postfix/smtpd[2372]: disconnect from 91-66-192-142-dynip.superkabel.de[91.66.192.142]
Apr  2 04:32:59 fornax postfix/anvil[2375]: statistics: max connection rate 1/60s for (smtp:91.66.192.142) at Apr  2 04:29:04
Apr  2 04:32:59 fornax postfix/anvil[2375]: statistics: max connection count 1 for (smtp:91.66.192.142) at Apr  2 04:29:04
Apr  2 04:32:59 fornax postfix/anvil[2375]: statistics: max cache size 1 at Apr  2 04:29:04
Apr  2 04:36:00 fornax postfix/smtpd[2387]: connect from fornax.trend2buy.de[127.0.0.1]
Apr  2 04:36:00 fornax postfix/smtpd[2387]: warning: connect to 127.0.0.1:7777: Connection refused
Apr  2 04:36:00 fornax postfix/smtpd[2387]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Apr  2 04:36:01 fornax postfix/smtpd[2387]: warning: connect to 127.0.0.1:7777: Connection refused
Apr  2 04:36:01 fornax postfix/smtpd[2387]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Apr  2 04:36:01 fornax postfix/smtpd[2387]: NOQUEUE: reject: RCPT from fornax.trend2buy.de[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<info@trend2buy.de> to=<www@trend2buy.de> proto=ESMTP helo=<fornax.trend2buy.de>
Apr  2 04:36:01 fornax roundcube: Invalid response code received from server (451):
Apr  2 04:36:01 fornax roundcube: SMTP Error: SMTP error: Failed to add recipient 'www@trend2buy.de' in /usr/share/apache2/roundcubemail-0.5.1/program/steps/mail/func.inc on line 1491 (POST /mail/?_unlock=loading1301711760200?_task=mail&_action=send)
Apr  2 04:36:01 fornax postfix/smtpd[2387]: disconnect from fornax.trend2buy.de[127.0.0.1]
Apr  2 04:36:41 fornax postfix/smtpd[2387]: connect from fornax.trend2buy.de[127.0.0.1]
Apr  2 04:36:41 fornax postfix/smtpd[2387]: warning: connect to 127.0.0.1:7777: Connection refused
Apr  2 04:36:41 fornax postfix/smtpd[2387]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Apr  2 04:36:42 fornax postfix/smtpd[2387]: warning: connect to 127.0.0.1:7777: Connection refused
Apr  2 04:36:42 fornax postfix/smtpd[2387]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Apr  2 04:36:42 fornax postfix/smtpd[2387]: NOQUEUE: reject: RCPT from fornax.trend2buy.de[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<info@trend2buy.de> to=<ms@netzxperts.de> proto=ESMTP helo=<fornax.trend2buy.de>
Apr  2 04:36:42 fornax roundcube: Invalid response code received from server (451):
Apr  2 04:36:42 fornax roundcube: SMTP Error: SMTP error: Failed to add recipient 'ms@netzxperts.de' in /usr/share/apache2/roundcubemail-0.5.1/program/steps/mail/func.inc on line 1491 (POST /mail/?_unlock=loading1301711801516?_task=mail&_action=send)
Apr  2 04:36:42 fornax postfix/smtpd[2387]: disconnect from fornax.trend2buy.de[127.0.0.1]

mail.err says:

Apr  2 04:36:42 fornax roundcube: SMTP Error: SMTP error: Failed to add recipient 'ms@netzxperts.de' in /usr/share/apache2/roundcubemail-0.5.1/program/steps/mail/func.inc on line 1491 (POST /mail/?_unlock=loading1301711801516?_task=mail&_action=send)

and mail.log says:

Apr  2 04:36:41 fornax postfix/smtpd[2387]: connect from fornax.trend2buy.de[127.0.0.1]
Apr  2 04:36:41 fornax postfix/smtpd[2387]: warning: connect to 127.0.0.1:7777: Connection refused
Apr  2 04:36:41 fornax postfix/smtpd[2387]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Apr  2 04:36:42 fornax postfix/smtpd[2387]: warning: connect to 127.0.0.1:7777: Connection refused
Apr  2 04:36:42 fornax postfix/smtpd[2387]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Apr  2 04:36:42 fornax postfix/smtpd[2387]: NOQUEUE: reject: RCPT from fornax.trend2buy.de[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<info@trend2buy.de> to=<ms@netzxperts.de> proto=ESMTP helo=<fornax.trend2buy.de>
Apr  2 04:36:42 fornax roundcube: Invalid response code received from server (451):
Apr  2 04:36:42 fornax roundcube: SMTP Error: SMTP error: Failed to add recipient 'ms@netzxperts.de' in /usr/share/apache2/roundcubemail-0.5.1/program/steps/mail/func.inc on line 1491 (POST /mail/?_unlock=loading1301711801516?_task=mail&_action=send)
Apr  2 04:36:42 fornax postfix/smtpd[2387]: disconnect from fornax.trend2buy.de[127.0.0.1]

can you help me please?
host/hostname resolving correctly....

Thank you VERY MUCH!

Martin

----

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

2

Re: Postfix Error 451 while sending and some more errors

It's confirmed that this is a bug in iRedAPD rc script. You can solve it manually
with below steps:

- Download a new RC script for Debian or Ubuntu:

# wget http://iredapd.iredmail.googlecode.com/hg/rc_scripts/iredapd.debian

- Copy it to /etc/init.d/iredapd and set correct file permission:

# cp iredapd.debian /etc/init.d/iredapd
# chmod 0755 /etc/init.d/iredapd

- Make it auto-start with system startup:

# update-rc.d iredapd defaults

- Start it manually now:

# /etc/init.d/iredapd restart

That's all. Your mail server should work as expected now.

3

Re: Postfix Error 451 while sending and some more errors

Re-uploaded iRedMail-0.7.0 moment ago, it fixes this issue. You can download it here: http://www.iredmail.org/download.html

4

Re: Postfix Error 451 while sending and some more errors

Thank you! Your fix runs well (used the manual fix, cause it was installed already).
But the following error is still there - is this critical?

Apr  2 04:24:49 fornax postfix-policyd: mysql_real_connect(): Can't connect to MySQL server on '127.0.0.1' (111)

But mailing runs well now!
THanks you very much!

Martin

5

Re: Postfix Error 451 while sending and some more errors

martinseener wrote:

Apr  2 04:24:49 fornax postfix-policyd: mysql_real_connect(): Can't connect to MySQL server on '127.0.0.1' (111)

Is mysql server running?

6 (edited by martinseener 2011-04-02 19:41:53)

Re: Postfix Error 451 while sending and some more errors

yes it runs well - can access it via phpmyadmin as well

-> when doing a reboot
mail.info says:

Apr  2 13:40:42 fornax amavis[1937]: starting.  /usr/sbin/amavisd-new at fornax.trend2buy.de amavisd-new-2.6.4 (20090625), Unicode aware
Apr  2 13:40:42 fornax amavis[1937]: Perl version               5.010001
Apr  2 13:40:43 fornax amavis[1945]: Net::Server: Group Not Defined.  Defaulting to EGID '111 111'
Apr  2 13:40:43 fornax amavis[1945]: Net::Server: User Not Defined.  Defaulting to EUID '107'
Apr  2 13:40:43 fornax amavis[1945]: Module Amavis::Conf        2.207
Apr  2 13:40:43 fornax amavis[1945]: Module Archive::Zip        1.30
Apr  2 13:40:43 fornax amavis[1945]: Module BerkeleyDB          0.42
Apr  2 13:40:43 fornax amavis[1945]: Module Compress::Zlib      2.02
Apr  2 13:40:43 fornax amavis[1945]: Module Convert::TNEF       0.17
Apr  2 13:40:43 fornax amavis[1945]: Module Convert::UUlib      1.12
Apr  2 13:40:43 fornax amavis[1945]: Module Crypt::OpenSSL::RSA 0.25
Apr  2 13:40:43 fornax amavis[1945]: Module DBD::mysql          4.016
Apr  2 13:40:43 fornax amavis[1945]: Module DBI                 1.612
Apr  2 13:40:43 fornax amavis[1945]: Module DB_File             1.82
Apr  2 13:40:43 fornax amavis[1945]: Module Digest::MD5         2.39
Apr  2 13:40:43 fornax amavis[1945]: Module Digest::SHA         5.47
Apr  2 13:40:43 fornax amavis[1945]: Module IO::Socket::INET6   2.65
Apr  2 13:40:43 fornax amavis[1945]: Module MIME::Entity        5.428
Apr  2 13:40:43 fornax amavis[1945]: Module MIME::Parser        5.428
Apr  2 13:40:43 fornax amavis[1945]: Module MIME::Tools         5.428
Apr  2 13:40:43 fornax amavis[1945]: Module Mail::DKIM::Signer  0.38
Apr  2 13:40:43 fornax amavis[1945]: Module Mail::DKIM::Verifier 0.38
Apr  2 13:40:43 fornax amavis[1945]: Module Mail::Header        2.06
Apr  2 13:40:43 fornax amavis[1945]: Module Mail::Internet      2.06
Apr  2 13:40:43 fornax amavis[1945]: Module Mail::SPF           v2.007
Apr  2 13:40:43 fornax amavis[1945]: Module Mail::SpamAssassin  3.003001
Apr  2 13:40:43 fornax amavis[1945]: Module Net::DNS            0.66
Apr  2 13:40:43 fornax amavis[1945]: Module Net::Server         0.97
Apr  2 13:40:43 fornax amavis[1945]: Module NetAddr::IP         4.028
Apr  2 13:40:43 fornax amavis[1945]: Module Socket6             0.23
Apr  2 13:40:43 fornax amavis[1945]: Module Time::HiRes         1.9719
Apr  2 13:40:43 fornax amavis[1945]: Module URI                 1.54
Apr  2 13:40:43 fornax amavis[1945]: Module Unix::Syslog        1.1
Apr  2 13:40:43 fornax amavis[1945]: Amavis::DB code      loaded
Apr  2 13:40:43 fornax amavis[1945]: Amavis::Cache code   loaded
Apr  2 13:40:43 fornax amavis[1945]: SQL base code        loaded
Apr  2 13:40:43 fornax amavis[1945]: SQL::Log code        loaded
Apr  2 13:40:43 fornax amavis[1945]: SQL::Quarantine      NOT loaded
Apr  2 13:40:43 fornax amavis[1945]: Lookup::SQL code     NOT loaded
Apr  2 13:40:43 fornax amavis[1945]: Lookup::LDAP code    NOT loaded
Apr  2 13:40:43 fornax amavis[1945]: AM.PDP-in proto code loaded
Apr  2 13:40:43 fornax amavis[1945]: SMTP-in proto code   loaded
Apr  2 13:40:43 fornax amavis[1945]: Courier proto code   NOT loaded
Apr  2 13:40:43 fornax amavis[1945]: SMTP-out proto code  loaded
Apr  2 13:40:43 fornax amavis[1945]: Pipe-out proto code  NOT loaded
Apr  2 13:40:43 fornax amavis[1945]: BSMTP-out proto code NOT loaded
Apr  2 13:40:43 fornax amavis[1945]: Local-out proto code loaded
Apr  2 13:40:43 fornax amavis[1945]: OS_Fingerprint code  NOT loaded
Apr  2 13:40:43 fornax amavis[1945]: ANTI-VIRUS code      loaded
Apr  2 13:40:43 fornax amavis[1945]: ANTI-SPAM code       loaded
Apr  2 13:40:43 fornax amavis[1945]: ANTI-SPAM-EXT code   NOT loaded
Apr  2 13:40:43 fornax amavis[1945]: ANTI-SPAM-C code     NOT loaded
Apr  2 13:40:43 fornax amavis[1945]: ANTI-SPAM-SA code    loaded
Apr  2 13:40:43 fornax amavis[1945]: Unpackers code       loaded
Apr  2 13:40:43 fornax amavis[1945]: DKIM code            loaded
Apr  2 13:40:43 fornax amavis[1945]: Tools code           NOT loaded
Apr  2 13:40:43 fornax amavis[1945]: Found $file            at /usr/bin/file
Apr  2 13:40:43 fornax amavis[1945]: Found $altermime       at /usr/bin/altermime
Apr  2 13:40:43 fornax amavis[1945]: Internal decoder for .mail
Apr  2 13:40:43 fornax amavis[1945]: No decoder for       .F   
Apr  2 13:40:43 fornax amavis[1945]: Found decoder for    .Z    at /bin/uncompress
Apr  2 13:40:43 fornax amavis[1945]: Internal decoder for .gz 
Apr  2 13:40:43 fornax amavis[1945]: Found decoder for    .bz2  at /bin/bzip2 -d
Apr  2 13:40:43 fornax amavis[1945]: No decoder for       .lzo  tried: lzop -d
Apr  2 13:40:43 fornax amavis[1945]: No decoder for       .rpm  tried: rpm2cpio.pl, rpm2cpio
Apr  2 13:40:43 fornax amavis[1945]: Found decoder for    .cpio at /usr/bin/pax
Apr  2 13:40:43 fornax amavis[1945]: Found decoder for    .tar  at /usr/bin/pax
Apr  2 13:40:43 fornax amavis[1945]: Found decoder for    .deb  at /usr/bin/ar
Apr  2 13:40:43 fornax amavis[1945]: Internal decoder for .zip
Apr  2 13:40:43 fornax amavis[1945]: No decoder for       .7z   tried: 7zr, 7za, 7z
Apr  2 13:40:43 fornax amavis[1945]: No decoder for       .rar  tried: unrar-free
Apr  2 13:40:43 fornax amavis[1945]: No decoder for       .arj  tried: arj, unarj
Apr  2 13:40:43 fornax amavis[1945]: No decoder for       .arc  tried: nomarch, arc
Apr  2 13:40:43 fornax amavis[1945]: No decoder for       .zoo  tried: zoo
Apr  2 13:40:43 fornax amavis[1945]: No decoder for       .lha
Apr  2 13:40:43 fornax amavis[1945]: No decoder for       .doc  tried: ripole
Apr  2 13:40:43 fornax amavis[1945]: No decoder for       .cab  tried: cabextract
Apr  2 13:40:43 fornax amavis[1945]: No decoder for       .tnef
Apr  2 13:40:43 fornax amavis[1945]: Internal decoder for .tnef
Apr  2 13:40:43 fornax amavis[1945]: No decoder for       .exe  tried: unrar-free; arj, unarj
Apr  2 13:40:43 fornax amavis[1945]: Using primary internal av scanner code for ClamAV-clamd
Apr  2 13:40:43 fornax amavis[1945]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Apr  2 13:40:43 fornax amavis[1945]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.42, libdb 4.8
Apr  2 13:40:45 fornax postfix-policyd: starting policyd v1.82
Apr  2 13:40:45 fornax postfix-policyd: connecting to mysql database: 127.0.0.1
Apr  2 13:40:45 fornax postfix-policyd: mysql_real_connect(): Can't connect to MySQL server on '127.0.0.1' (111)
Apr  2 13:40:53 fornax postfix/master[2765]: daemon started -- version 2.7.1, configuration /etc/postfix

7

Re: Postfix Error 451 while sending and some more errors

martinseener wrote:

Apr  2 13:40:45 fornax postfix-policyd: mysql_real_connect(): Can't connect to MySQL server on '127.0.0.1' (111)

Check whether you have correct mysql user and password in policyd config file: /etc/postfix-policyd.conf.
If user/password are correct, set "DEBUG=1" in config file, restart postfix-policyd service, check what it says in /var/log/mail.log.

8 (edited by martinseener 2011-04-02 20:46:37)

Re: Postfix Error 451 while sending and some more errors

Apr  2 13:40:43 fornax amavis[1945]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.42, libdb 4.8
Apr  2 13:40:45 fornax postfix-policyd: starting policyd v1.82
Apr  2 13:40:45 fornax postfix-policyd: connecting to mysql database: 127.0.0.1
Apr  2 13:40:45 fornax postfix-policyd: mysql_real_connect(): Can't connect to MySQL server on '127.0.0.1' (111)
Apr  2 13:40:53 fornax postfix/master[2765]: daemon started -- version 2.7.1, configuration /etc/postfix
Apr  2 14:01:01 fornax cleanup: clean up process starting: policyd v1.82
Apr  2 14:01:01 fornax cleanup: connecting to mysql database: 127.0.0.1
Apr  2 14:01:01 fornax cleanup: connected..
Apr  2 14:01:01 fornax cleanup: expiring validated records older than 7 days (1301140861)
Apr  2 14:01:01 fornax cleanup: clean up process starting: policyd v1.82
Apr  2 14:01:01 fornax cleanup: expired: 0 records
Apr  2 14:01:01 fornax cleanup: expiring unvalidated records older than 2 days (1301572861)
Apr  2 14:01:01 fornax cleanup: expired: 0 records
Apr  2 14:01:01 fornax cleanup: expiring blacklisted records (1301745661)
Apr  2 14:01:01 fornax cleanup: connecting to mysql database: 127.0.0.1
Apr  2 14:01:01 fornax cleanup: expired: 0 records
Apr  2 14:01:01 fornax cleanup: expiring autowhitelisted records older than 7 days (1301745661)
Apr  2 14:01:01 fornax cleanup: connected..
Apr  2 14:01:01 fornax cleanup: expiring throttlesender records older than 31 days (1299067261)
Apr  2 14:01:01 fornax cleanup: expired: 0 records
Apr  2 14:01:01 fornax cleanup: expiring throttlesender instances older than 1 hour (1301742061)
Apr  2 14:01:01 fornax cleanup: expired: 0 records
Apr  2 14:01:01 fornax cleanup: expired: 0 records
Apr  2 14:01:01 fornax cleanup: expiring helo records older than 7 days (1301745661)
Apr  2 14:01:01 fornax cleanup: expired: 0 records
Apr  2 14:43:44 fornax postfix-policyd: shutting down..
Apr  2 14:43:45 fornax postfix-policyd:  ---- DAEMON CONFIG ----
Apr  2 14:43:45 fornax postfix-policyd: config: version> v1.82
Apr  2 14:43:45 fornax postfix-policyd: config: debug> 1
Apr  2 14:43:45 fornax postfix-policyd: config: daemon mode> 1
Apr  2 14:43:45 fornax postfix-policyd: config: bindhost> 127.0.0.1
Apr  2 14:43:45 fornax postfix-policyd: config: bindport> 10031
Apr  2 14:43:45 fornax postfix-policyd: config: pidfile> /var/run/policyd.pid
Apr  2 14:43:45 fornax postfix-policyd: config: syslog> 22
Apr  2 14:43:45 fornax postfix-policyd: config: chroot> /home/policyd
Apr  2 14:43:45 fornax postfix-policyd: config: uid> 1003
Apr  2 14:43:45 fornax postfix-policyd: config: gid> 1003
Apr  2 14:43:45 fornax postfix-policyd: config: conn acl> 127.0.0.1
Apr  2 14:43:45 fornax postfix-policyd:
Apr  2 14:43:45 fornax postfix-policyd:  ---- DATABASE CONFIG ----
Apr  2 14:43:45 fornax postfix-policyd: config: host> 127.0.0.1
Apr  2 14:43:45 fornax postfix-policyd: config: user> postfix-policyd
Apr  2 14:43:45 fornax postfix-policyd: config: pass> <removed by me 4 security>
Apr  2 14:43:45 fornax postfix-policyd: config: database> postfixpolicyd
Apr  2 14:43:45 fornax postfix-policyd: config: options>
Apr  2 14:43:45 fornax postfix-policyd: config: failsafe> 1
Apr  2 14:43:45 fornax postfix-policyd: config: keep alive> 0
Apr  2 14:43:45 fornax postfix-policyd: config: version> 50137
Apr  2 14:43:45 fornax postfix-policyd:
Apr  2 14:43:45 fornax postfix-policyd:  ---- WHITELISTING ----
Apr  2 14:43:45 fornax postfix-policyd: config: whitelisting> 1
Apr  2 14:43:45 fornax postfix-policyd: config: whitelistnullsender> 0
Apr  2 14:43:45 fornax postfix-policyd: config: whitelistsender> 1
Apr  2 14:43:45 fornax postfix-policyd: config: whitelistdnsname> 0
Apr  2 14:43:45 fornax postfix-policyd: config: autowhitelisting> 1
Apr  2 14:43:45 fornax postfix-policyd: config: autowhitelist_number> 10
Apr  2 14:43:45 fornax postfix-policyd: config: autowhitelist_netblock> 0
Apr  2 14:43:45 fornax postfix-policyd: config: autowhitelist_expire> 604800
Apr  2 14:43:45 fornax postfix-policyd:
Apr  2 14:43:45 fornax postfix-policyd:  ---- BLACKLISTING ----
Apr  2 14:43:45 fornax postfix-policyd: config: blacklisting> 1
Apr  2 14:43:45 fornax postfix-policyd: config: blacklisting_temp_reject> 0
Apr  2 14:43:45 fornax postfix-policyd: config: blacklisting_netblock> 0
Apr  2 14:43:45 fornax postfix-policyd: config: postfix_blacklist> action=reject Policy Rejection- Abuse. Go away.#012#012
Apr  2 14:43:45 fornax postfix-policyd: config: autoblacklisting> 1
Apr  2 14:43:45 fornax postfix-policyd: config: autoblacklist_number> 500
Apr  2 14:43:45 fornax postfix-policyd: config: autoblacklist_expire> 604800
Apr  2 14:43:45 fornax postfix-policyd: config: blacklist_rejection> action=reject Policy Rejection- Abuse. Go away.#012#012
Apr  2 14:43:45 fornax postfix-policyd:
Apr  2 14:43:45 fornax postfix-policyd:  ---- HELO (HRP) ----
Apr  2 14:43:45 fornax postfix-policyd: config: helo> 1
Apr  2 14:43:45 fornax postfix-policyd: config: helo_max_count> 10
Apr  2 14:43:45 fornax postfix-policyd: config: helo_blacklist_auto_expire> 1209600
Apr  2 14:43:45 fornax postfix-policyd: config: helo_auto_expire> 604800
Apr  2 14:43:45 fornax postfix-policyd:
Apr  2 14:43:45 fornax postfix-policyd:  ---- SPAMTRAP CONFIG ----
Apr  2 14:43:45 fornax postfix-policyd: config: spamtrap> 1
Apr  2 14:43:45 fornax postfix-policyd: config: postfix_spamtrap> action=reject Policy Rejection- Abuse. Go away.#012#012
Apr  2 14:43:45 fornax postfix-policyd: config: spamtrapauto_expire> 604800
Apr  2 14:43:45 fornax postfix-policyd:
Apr  2 14:43:45 fornax postfix-policyd:  ---- GREYLISTING CONFIG ----
Apr  2 14:43:45 fornax postfix-policyd: config: greylisting> 1
Apr  2 14:43:45 fornax postfix-policyd: config: greylist_hostaddr> 3
Apr  2 14:43:45 fornax postfix-policyd: config: postfix_greylist> action=defer_if_permit Policy Rejection- Please try later.#012#012
Apr  2 14:43:45 fornax postfix-policyd: config: greylist_x_header> 0
Apr  2 14:43:45 fornax postfix-policyd: config: trainingmode> 0
Apr  2 14:43:45 fornax postfix-policyd: config: training_policyd_timeout> 0
Apr  2 14:43:45 fornax postfix-policyd: config: triplet timeout> 300
Apr  2 14:43:45 fornax postfix-policyd: config: optin/optout> 0
Apr  2 14:43:45 fornax postfix-policyd: config: optin all in> 0
Apr  2 14:43:45 fornax postfix-policyd: config: triplet auth timeout> 604800
Apr  2 14:43:45 fornax postfix-policyd: config: triplet unauth timeout> 172800
Apr  2 14:43:45 fornax postfix-policyd:
Apr  2 14:43:45 fornax postfix-policyd:  ---- SENDER THROTTLE CONFIG ----
Apr  2 14:43:45 fornax postfix-policyd: config: sender throttle> 0
Apr  2 14:43:45 fornax postfix-policyd: config: sender throttle sasl> 0
Apr  2 14:43:45 fornax postfix-policyd: config: sender throttle host> 1
Apr  2 14:43:45 fornax postfix-policyd: config: postfix_sender_quota_exceeded> action=defer_if_permit Policy Rejection- Quota Exceeded.#012#012
Apr  2 14:43:45 fornax postfix-policyd: config: quota_exceeded_temp_reject> 1
Apr  2 14:43:45 fornax postfix-policyd: config: postfix_bad_size> action=reject Policy Rejection- Message size too big.#012#012
Apr  2 14:43:45 fornax postfix-policyd: config: sender msglimit> 512
Apr  2 14:43:45 fornax postfix-policyd: config: sender quotalimit> 250000000
Apr  2 14:43:45 fornax postfix-policyd: config: sender timelimit> 3600
Apr  2 14:43:45 fornax postfix-policyd: config: sender msgsize> 10240000
Apr  2 14:43:45 fornax postfix-policyd: config: sender expire inactive> 2678400
Apr  2 14:43:45 fornax postfix-policyd: config: sender throttle autoblacklisting> 0
Apr  2 14:43:45 fornax postfix-policyd: config: sender throttle autoblacklist number> 0
Apr  2 14:43:45 fornax postfix-policyd: config: sender throttle autoblacklist expire> 0
Apr  2 14:43:45 fornax postfix-policyd:
Apr  2 14:43:45 fornax postfix-policyd:  ---- RECIPIENT THROTTLE CONFIG ----
Apr  2 14:43:45 fornax postfix-policyd: config: recipient throttle> 0
Apr  2 14:43:45 fornax postfix-policyd: config: recipient msglimit> 64
Apr  2 14:43:45 fornax postfix-policyd: config: recipient timelimit> 3600
Apr  2 14:43:45 fornax postfix-policyd: config: recipient expire inactive> 2678400
Apr  2 14:43:45 fornax postfix-policyd: config: postfix_recipient_quota_exceeded> action=defer_if_permit Policy Rejection- Quota Exceeded.#012#012
Apr  2 14:43:45 fornax postfix-policyd: config: quota_exceeded_temp_reject> 1
Apr  2 14:43:45 fornax postfix-policyd:
Apr  2 14:43:45 fornax postfix-policyd: starting policyd v1.82
Apr  2 14:43:45 fornax postfix-policyd: DEBUG: fd: 0: rlimit: max: 4097 cur: 4097
Apr  2 14:43:45 fornax postfix-policyd: connecting to mysql database: 127.0.0.1
Apr  2 14:43:45 fornax postfix-policyd: connected..

14:43 i restarted it

it seems that the startup script runs too early (before mysql?) cause it says "connected" after a init.d/postfix-policyd restart command...

9

Re: Postfix Error 451 while sending and some more errors

martinseener wrote:

it seems that the startup script runs too early (before mysql?) cause it says "connected" after a init.d/postfix-policyd restart command...

You're right. This is a minor bug in postfix-policyd rc script: /etc/init.d/postfix-policyd.

It has this line:

# Required-Start:    $remote_fs $syslog

Since it requires MySQL server, it MUST contain '$mysql' in this line. like below:

# Required-Start:    $remote_fs $syslog $mysql

You can fix it manually. Don't forget to report this bug here: https://bugs.launchpad.net/ubuntu/+sour … x-policyd/

10

Re: Postfix Error 451 while sending and some more errors

Well, i reported this issue here: https://bugs.launchpad.net/ubuntu/+sour … bug/748298

11

Re: Postfix Error 451 while sending and some more errors

i changed that line and also "update-rc.d postfix-policyd defaults" as root. but the error is still there sad

12

Re: Postfix Error 451 while sending and some more errors

have now added

/etc/init.d/postfix-policyd restart

to /etc/rc.local - now policyd is up and running after a reboot.
the fix above doesnt really work! why?

Thanks for help.

Greets from Dresden,
Martin