Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetchmail mda config to deliver to mail user's sieve #530

Open
quite opened this issue Dec 11, 2023 · 2 comments
Open

fetchmail mda config to deliver to mail user's sieve #530

quite opened this issue Dec 11, 2023 · 2 comments

Comments

@quite
Copy link

quite commented Dec 11, 2023

I'm migrating from old maildrop based setup. I'm using fetchmail and I don't manage to set the correct mda in its config. I'd like mails to be delivered to dovecot and ideally pass through my user's sieve filters. I tried with mda "/usr/libexec/dovecot/dovecot-lda" and with various flags, but can't get it to work at all.

I can provide a guide for lab.uberspace once I get it working :)

@quite
Copy link
Author

quite commented Jan 15, 2024

For now I tried using the fetchmail option smtpname [email protected] to have it deliver to my email address (hosted on my uberspace). But fetchmail often gets:

fetchmail: SMTP error: 451 4.7.1 Try again later
fetchmail:  not flushed

Perhaps due to rate-limiting. So it's not a great option. Feels like there should be some way using the dovecot mda, instead of using the above and causing invocation of postfix as MTA.

fetchmail is running locally, has fetched an email from some IMAP/POP3 server, and just needs to drop it in a folder on local disk, well ideally by way of the sieve filters.

@quite
Copy link
Author

quite commented Jan 18, 2024

OK, by carefully reading /opt/uberspace/etc/spamfolder.template which is included by ~/.spamfolder I came up with something that seems to be working. This is an example mda line for the fetchmail config, which passes the fetched mail through dovecot/sieve:

mda "/usr/libexec/dovecot/dovecot-lda -e -a %T -f %F -o mail_home=/home/UBERSPACE_USER/users/MAIL_USER -o mail_location='maildir:~/'"

I don't close this issue in case you wanna document this somewhere first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant