1

Topic: Fetchmail getting rejected

==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 14.04 LTS
- Related log if you're reporting an issue:

Mar 12 14:16:12 mail postfix/smtpd[4764]: NOQUEUE: reject: RCPT from localhost[::1]: 450 4.7.1 <andrze
j@mydomain.pl>: Recipient address rejected: Access denied; from=<piotrek@gmail.com> to=<andrz
ej@mydomain.pl> proto=ESMTP helo=<mail.mydomain.pl>
====

I'm trying to pull some external email using fetchmail and keep finding rejections in /var/log/mail.log

How to sort this out?

----

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

2

Re: Fetchmail getting rejected

*) Show us FULL log related to this testing email.
*) How do you fetch mail?
*) The log says it's connecting to IPv6 address, does your server has a IPv6 address? not the localhost one.

3

Re: Fetchmail getting rejected

This is my fetchmailrc file:

set syslog;
set daemon 120;
set postmaster "postmaster@mydomain.pl;

poll pop.gmx.com
  with protocol POP3
  user 'email@gmx.com' there is andrzej@mydomain.pl here,
  with password 'PASS',
  with ssl, keep;

Full fetchmail log from mail.log:

Mar 12 14:50:44 mail fetchmail[6082]: starting fetchmail 6.3.26 daemon
Mar 12 14:50:44 mail fetchmail[6082]: 7 messages for email@gmx.com at pop.gmx.com (209829 octets).
Mar 12 14:50:44 mail postfix/smtpd[6085]: connect from localhost[::1]
Mar 12 14:50:44 mail postfix/smtpd[6085]: NOQUEUE: reject: RCPT from localhost[::1]: 450 4.7.1 <andrzej@mydomain.pl>: Recipient address rejected: Access denied; from=<piotrtylkowski@gmail.com> to=<andrzej@mydomain.pl> proto=ESMTP helo=<mail.mydomain.pl>
Mar 12 14:50:44 mail fetchmail[6082]: reading message email@gmx.com@pop.gmx.com:1 of 7 (4675 octets) (log message incomplete)
Mar 12 14:50:44 mail fetchmail[6082]: SMTP error: 450 4.7.1 <andrzej@mydomain.pl>: Recipient address rejected: Access denied
Mar 12 14:50:44 mail fetchmail[6082]:  not flushed
Mar 12 14:50:45 mail postfix/smtpd[6085]: NOQUEUE: reject: RCPT from localhost[::1]: 450 4.7.1 <andrzej@mydomain.pl>: Recipient address rejected: Access denied; from=<0000014c03c0f74d-c5dceb1d-1e37-4979-8254-34f6b2ea7459-000000@eu-west-1.amazonses.com> to=<andrzej@mydomain.pl> proto=ESMTP helo=<mail.mydomain.pl>
Mar 12 14:50:45 mail fetchmail[6082]: reading message email@gmx.com@pop.gmx.com:2 of 7 (14387 octets) (log message incomplete)
Mar 12 14:50:45 mail fetchmail[6082]: SMTP error: 450 4.7.1 <andrzej@mydomain.pl>: Recipient address rejected: Access denied
Mar 12 14:50:45 mail fetchmail[6082]:  not flushed
Mar 12 14:50:46 mail postfix/smtpd[6085]: NOQUEUE: reject: RCPT from localhost[::1]: 450 4.7.1 <andrzej@mydomain.pl>: Recipient address rejected: Access denied; from=<an.sosnicka@gmail.com> to=<andrzej@mydomain.pl> proto=ESMTP helo=<mail.mydomain.pl>
Mar 12 14:50:46 mail fetchmail[6082]: reading message email@gmx.com@pop.gmx.com:3 of 7 (25803 octets) (log message incomplete)
Mar 12 14:50:46 mail fetchmail[6082]: SMTP error: 450 4.7.1 <andrzej@mydomain.pl>: Recipient address rejected: Access denied
Mar 12 14:50:46 mail fetchmail[6082]:  not flushed
Mar 12 14:50:47 mail fetchmail[6082]: reading message email@gmx.com@pop.gmx.com:4 of 7 (149223 octets) (log message incomplete)
Mar 12 14:50:47 mail fetchmail[6082]: SMTP error: 450 4.7.1 <andrzej@mydomain.pl>: Recipient address rejected: Access denied
Mar 12 14:50:47 mail fetchmail[6082]:  not flushed
Mar 12 14:50:47 mail postfix/smtpd[6085]: NOQUEUE: reject: RCPT from localhost[::1]: 450 4.7.1 <andrzej@mydomain.pl>: Recipient address rejected: Access denied; from=<an.sosnicka@gmail.com> to=<andrzej@mydomain.pl> proto=ESMTP helo=<mail.mydomain.pl>
Mar 12 14:50:49 mail postfix/smtpd[6085]: NOQUEUE: reject: RCPT from localhost[::1]: 450 4.7.1 <andrzej@mydomain.pl>: Recipient address rejected: Access denied; from=<piotrtylkowski@gmail.com> to=<andrzej@mydomain.pl> proto=ESMTP helo=<mail.mydomain.pl>
Mar 12 14:50:49 mail fetchmail[6082]: reading message email@gmx.com@pop.gmx.com:5 of 7 (3972 octets) (log message incomplete)
Mar 12 14:50:49 mail fetchmail[6082]: SMTP error: 450 4.7.1 <andrzej@mydomain.pl>: Recipient address rejected: Access denied
Mar 12 14:50:49 mail fetchmail[6082]:  not flushed
Mar 12 14:50:50 mail fetchmail[6082]: reading message email@gmx.com@pop.gmx.com:6 of 7 (5115 octets) (log message incomplete)
Mar 12 14:50:50 mail fetchmail[6082]: SMTP error: 450 4.7.1 <andrzej@mydomain.pl>: Recipient address rejected: Access denied
Mar 12 14:50:50 mail fetchmail[6082]:  not flushed
Mar 12 14:50:50 mail fetchmail[6082]: reading message email@gmx.com@pop.gmx.com:7 of 7 (6654 octets) (log message incomplete)
Mar 12 14:50:50 mail fetchmail[6082]: terminated with signal 15
Mar 12 14:50:51 mail postfix/smtpd[6085]: message repeated 2 times: [ NOQUEUE: reject: RCPT from localhost[::1]: 450 4.7.1 <andrzej@mydomain.pl>: Recipient address rejected: Access denied; from=<piotrtylkowski@gmail.com> to=<andrzej@mydomain.pl> proto=ESMTP helo=<mail.mydomain.pl>]
Mar 12 14:50:51 mail postfix/smtpd[6085]: lost connection after RCPT from localhost[::1]
Mar 12 14:50:51 mail postfix/smtpd[6085]: disconnect from localhost[::1]

I dont use ipv6, everything in fetchmail is set at defualt, I had it working with no issues with the previous version of iRedMail.

4

Re: Fetchmail getting rejected

Set 'inet_protocols = ipv4' in Postfix /etc/postfix/main.cf, restart Postfix service, then try again.

5

Re: Fetchmail getting rejected

Thank you sir ;-)
This fixed my problem!