Bug #2766

Fetchmail delivers to non-existing email addresses

Added by Andrea Marchionni about 7 years ago. Updated about 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-fetchmail
Target version:v6.5
Security class: Resolution:
Affected version:v6.5-final NEEDINFO:Yes

Description

Fetchmail allow to choose the destination of the emails that it fetches but shows a list of users instead of available email addresses.
If there isn't a email address like username@domain the messages aren't delivered

Jun  9 09:53:31 [err]  reading message commerciale@domain.com@mail.domain.com:79 of 517 (2736 octets) (log message incomplete)
Jun  9 09:53:31 [err]  SMTP error: 550 5.1.1 <user@domain.com>: Recipient address rejected: User unknown in virtual mailbox table
Jun  9 09:53:31 [err]  mail from MAILER-DAEMON@serv01.domain.com bounced to info@domain.com
Jun  9 09:53:32 [err]  can't even send to fetchmail!

Related issues

Related to NethServer 6 - Enhancement #2954: Avoid fetchmail bounces CLOSED

Associated revisions

Revision 942e8bf4
Added by Davide Principi about 7 years ago

fetchmailrc template: use the first valid email to deliver. Refs #2766

- Restart fetchmail whenever pseudonyms or domains change.

- The first email address of the given account is used to deliver
fetched messages.

History

#1 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from NEW to TRIAGED
  • Assignee set to Davide Principi
  • Target version set to v6.5
  • % Done changed from 0 to 20

The real bug is that a chosen account from the interface should be mapped to its own aliases inside fetchmail configuration.

As a workaround, create a mail account with the same name as the account.

#2 Updated by Davide Principi about 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • % Done changed from 20 to 30

#3 Updated by Davide Principi about 7 years ago

  • Subject changed from Fetchmail allows to choose users instead of available email addresses to Fetchmail delivers to non-existing email addresses
  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

Test case

The modified version should fix the problem. Moreover an account with no mail addresses associated is skipped in configuration and a warning is sent to /var/log/messages during daemon startup.

#4 Updated by Davide Principi about 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-fetchmail-1.0.3-3.0git942e8bf4.ns6.noarch.rpm

#5 Updated by Giacomo Sanchietti about 7 years ago

  • Assignee set to Giacomo Sanchietti

#6 Updated by Giacomo Sanchietti about 7 years ago

  • Assignee deleted (Giacomo Sanchietti)

#7 Updated by Filippo Carletti about 7 years ago

The interface should offer to map external accounts to internal email addresses, not internal user or groups, because there's no guarantee that a user or group have an associated email address.

#8 Updated by Davide Principi about 7 years ago

Filippo Carletti wrote:

The interface should offer to map external accounts to internal email addresses, not internal user or groups, because there's no guarantee that a user or group have an associated email address.

You're right: the email address could not be there, and result to a "silent fail". The warning message is not enough. Think the modified version as a workaround more than a real fix.

Anyway I would prefer to deliver messages directly to user's mailbox, avoiding additional level of indirections and mail-forwarding.

A possible alternative way is talking directly to amavis on port 10024, bypassing the mail recipient restrictions, and SMTP AUTH.

#9 Updated by Davide Principi about 7 years ago

  • NEEDINFO changed from No to Yes

#10 Updated by Giacomo Sanchietti about 7 years ago

I'd like to have the possibility to choose if a mailbox should or shouldn't be checked for antivirus/antispam.

Something like a filter property:
  • if enabled, mail will be sent to amavis port
  • if disabled, mail will be delivered using a mda (see mda and -m option on fetchmail manual)

#11 Updated by Davide Principi about 7 years ago

Giacomo Sanchietti wrote:

Something like a filter property

+1

I think we're approaching the solution! Filippo?

#12 Updated by Stefano Fancello about 7 years ago

  • Assignee set to Stefano Fancello

#13 Updated by Stefano Fancello about 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Stefano Fancello)
  • % Done changed from 70 to 90

Verified:
on nethserver-fetchmail-1.0.3-1.ns6.noarch, got this on log:

 # tail /var/log/fetchmail.log
Jul  3 18:40:13 [err]  impossibile anche inviare a fetchmail.
Jul  3 18:40:13 [info]   non eliminato
Jul  3 18:40:13 [err]  lettura del messaggio admin@nethvoiceng.nethesis.it in corso: 4 di 5093 (459 ottetti nell'intestazione) (messaggio di registro incompleto)
Jul  3 18:40:13 [err]  Errore SMTP: 550 5.1.1 <pippo@nethesis.it>: Recipient address rejected: User unknown in virtual mailbox table
Jul  3 18:40:13 [err]  impossibile anche inviare a fetchmail.
Jul  3 18:40:13 [info]   non eliminato

on nethserver-fetchmail-1.0.3-3.0git942e8bf4.ns6.noarch mail are sent to user inbox

#14 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-fetchmail-1.0.4-1.ns6.noarch.rpm

#15 Updated by Davide Principi over 6 years ago

Also available in: Atom PDF