1 (edited by rtrevino 2017-01-06 08:27:26)

Topic: SOLVED: fetchmail not delivering emails

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.5-1
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Hello Everyone this is my first post, I have made a prior search but I cant find anything like it..

fetchmail is working ok, but emails are not getting to the user mailbox

this is the log file.

fetchmail: POP3< +OK Begin TLS negotiation now.
fetchmail: Server certificate:
fetchmail: Issuer Organization: none
fetchmail: Issuer CommonName: localhost
fetchmail: Subject CommonName: localhost
fetchmail: Server CommonName mismatch: localhost != serverpro.mx
fetchmail: serverpro.mx key fingerprint: 2D:54:E0:3B:7B:9C:66:9B:63:85:DD:B0:6D:7C:97:2B
fetchmail: Server certificate verification error: self signed certificate
fetchmail: This means that the root signing certificate (issued for /C=GB/ST=Someprovince/L=Sometown/O=none/OU=none/CN=localh$
fetchmail: Server certificate:
fetchmail: Issuer Organization: none
fetchmail: Issuer CommonName: localhost
fetchmail: Subject CommonName: localhost
fetchmail: Server CommonName mismatch: localhost != serverpro.mx
fetchmail: Warning: the connection is insecure, continuing anyways. (Better use --sslcertck!)
fetchmail: POP3> CAPA
fetchmail: POP3< +OK
fetchmail: POP3< CAPA
fetchmail: POP3< TOP
fetchmail: POP3< UIDL
fetchmail: POP3< PIPELINING
fetchmail: POP3< AUTH-RESP-CODE
fetchmail: POP3< USER
fetchmail: POP3< SASL PLAIN
fetchmail: POP3< .
fetchmail: serverpro.mx: upgrade to TLS succeeded.
fetchmail: POP3> USER pgonzalez@serverpro.mx
fetchmail: POP3< +OK
fetchmail: POP3> PASS *
fetchmail: POP3< +OK Logged in.
fetchmail: selecting or re-polling default folder
fetchmail: POP3> STAT
fetchmail: POP3< +OK 2 108701
fetchmail: POP3> LAST
fetchmail: POP3< -ERR Unknown command: LAST
fetchmail: Unknown command: LAST
fetchmail: POP3> UIDL
fetchmail: POP3< +OK
fetchmail: POP3< 1 0000196b53e0fbeb
fetchmail: POP3< 2 0000196c53e0fbeb
fetchmail: 2 is unseen
fetchmail: POP3< .
fetchmail: 2 messages (1 seen) for pgonzalez@serverpro.mx at serverpro.mx (108701 octets).
fetchmail: POP3> LIST 2
fetchmail: POP3< +OK 2 51311 octets
fetchmail: reading message pgonzalez@serverpro.mx@serverpro.mx:2 of 2 (51311 octets)About to rewrite Return-path: <rtrevino@s$
...rewritten version is Return-path: <rtrevino@serverpro.mx>.
fetchmail: About to rewrite From: "Raul Trevino" <rtrevino@serverpro.mx>...
...rewritten version is From: "Raul Trevino" <rtrevino@serverpro.mx>.
fetchmail: About to rewrite To: <pgonzalez@serverpro.mx>...
...rewritten version is To: <pgonzalez@serverpro.mx>.
fetchmail: Trying to connect to 127.0.0.1/25...connected.
fetchmail: SMTP< 220 mx.serverpro.local ESMTP Postfix
fetchmail: SMTP> EHLO mx.serverpro.local
fetchmail: SMTP< 250-mx.serverpro.local
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-SIZE 15728640
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-STARTTLS
fetchmail: SMTP< 250-ENHANCEDSTATUSCODES
fetchmail: SMTP< 250-8BITMIME
fetchmail: SMTP< 250 DSN
fetchmail: forwarding to mx.serverpro.local
fetchmail: SMTP> MAIL FROM:<rtrevino@serverpro.mx> SIZE=51311
fetchmail: SMTP< 250 2.1.0 Ok
fetchmail: SMTP> RCPT TO:<pgonzalez@serverpro.local>
fetchmail: SMTP< 250 2.1.5 Ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF>
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 Ok: queued as 06B66201CFA6
fetchmail:  not flushed
fetchmail: POP3> QUIT
fetchmail: POP3< +OK Logging out.
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0 Bye
fetchmail: 6.3.24 querying serverpro.mx (protocol POP3) at Wed 04 Jan 2017 02:11:16 PM CST: poll completed
fetchmail: New UID list from serverpro.mx: 0000196b53e0fbeb = SEEN, 0000196c53e0fbeb = SEEN
fetchmail: swapping UID lists
fetchmail: Writing fetchids file.
fetchmail: sleeping at Wed 04 Jan 2017 02:11:16 PM CST for 300 seconds

this is the fetchmailrc

set postmaster “postmaster@serverpro.local”
set bouncemail
set no spambounce
set properties “”
set logfile "/var/log/fetchmail.log"
set daemon 300
poll serverpro.mx with proto POP3 auth password
user "pgonz@serverpro.mx" there with password "*****" is "pgonz@serverpro.local" here keep
smtphost "mx.serverpro.local" smtpname "pgonz@serverpro.local"

any help will be appreciated!

thnks
rtrevino

----

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

2

Re: SOLVED: fetchmail not delivering emails

No error in fetchmail log, seems it correctly delivered email to somewhere.

iRedMail uses Dovecot LDA program to deliver email, maybe you can use it too in fetchmailrc? Seems it uses "mda" parameter to define the program path.

Sample setting:
http://www.dovecot.org/list/dovecot/200 … 24012.html

You can find the parameters used by Dovecot LDA in /etc/postfix/master.cf (search 'dovecot'). Or, you can use LMTP service since fetchmail supports it too (parameter "lmtp"). like this:

lmtp:inet:127.0.0.1:24

Hope it helps. And i believe other users will appreciate if you can share your fully working settings here. smile

3

Re: SOLVED: fetchmail not delivering emails

Hello,

thnks for the reply,

I will look a t it and post my findings



ZhangHuangbin wrote:

No error in fetchmail log, seems it correctly delivered email to somewhere.

iRedMail uses Dovecot LDA program to deliver email, maybe you can use it too in fetchmailrc? Seems it uses "mda" parameter to define the program path.

Sample setting:
http://www.dovecot.org/list/dovecot/200 … 24012.html

You can find the parameters used by Dovecot LDA in /etc/postfix/master.cf (search 'dovecot'). Or, you can use LMTP service since fetchmail supports it too (parameter "lmtp"). like this:

lmtp:inet:127.0.0.1:24

Hope it helps. And i believe other users will appreciate if you can share your fully working settings here. smile

4

Re: SOLVED: fetchmail not delivering emails

The link you provided was very helpful

It was working in no time. smile

this is my fetchmailrc
___________________________________________

set postmaster “postmaster@domain.local”
set no bouncemail
set no spambounce
set properties “”
set logfile "/var/log/fetchmail.log"
set daemon 60

poll "ispmail.com"
with protocol pop3
user "user@ispmail.com" there with password "Password" is "user@domain.local" here
mda "/usr/libexec/dovecot/deliver -d user@domain.local"

___________________________________________________________________

I hope some else in need finds it helpful

5

Re: SOLVED: fetchmail not delivering emails

Thanks for sharing. smile