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

Update guide_mailman-3.rst - works (almost) without qmail #1769

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

frafl
Copy link
Contributor

@frafl frafl commented Jun 2, 2024

Add an alternative configuration which does not rely on qmail (except for two minor options).

Add an alternative configuration which does not rely on qmail (except for two minor options).
@nichtmax
Copy link
Member

Hey @frafl, thank you for your PR! We'll take a look at it and test it the next days.

Copy link

@jskvbinmv jskvbinmv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just tested this and found some inconsistencies in the guide.

source/guide_mailman-3.rst Outdated Show resolved Hide resolved
source/guide_mailman-3.rst Outdated Show resolved Hide resolved
source/guide_mailman-3.rst Show resolved Hide resolved
source/guide_mailman-3.rst Outdated Show resolved Hide resolved
@jskvbinmv
Copy link

I tried this approach but couldn't get it to work.

/home/isabell/var/logs/fetchmail_err.log

The nodetach option is in effect, ignoring logfile option.
fetchmail: connection to isabell.local.uberspace.de:8024 [fd75:6272:7370:12e::2/8024] failed: Connection refused.
fetchmail: LMTP error: 550 Requested action not taken: mailbox unavailable
fetchmail: LMTP listener doesn't like recipient address `[email protected]'
fetchmail: can't even send to isabell!

@frafl
Copy link
Contributor Author

frafl commented Jul 24, 2024

@jskvbinmv

fetchmail: connection to isabell.local.uberspace.de:8024 [fd75:6272:7370:12e::2/8024] failed: Connection refused.

Could you also check the _out.log? My log shows failed attempts with the IPv6 address, but a successful connection using IPv4 directly after that.

@frafl
Copy link
Contributor Author

frafl commented Jul 24, 2024

@jskvbinmv

fetchmail: LMTP error: 550 Requested action not taken: mailbox unavailable
fetchmail: LMTP listener doesn't like recipient address `[email protected]'
fetchmail: can't even send to isabell!

This is not directly related to an initial error, but a a try to send a status mail to "your" account isabell after another error occurred. Fetchmail assumes that this can be done via the same LMTP connection, but this fails of course.

The _out.log file would be helpful here, too. A successfully handled mail looks like this:

fetchmail: 1 is first unseen
1 message for isabell-catchallbox at stardust.uberspace.de (folder Mailman).
fetchmail: IMAP> A1762 FETCH 1 RFC822.SIZE
fetchmail: IMAP< * 1 FETCH (RFC822.SIZE 365)
fetchmail: IMAP< A1762 OK Fetch completed (0.001 + 0.000 secs).
fetchmail: IMAP> A1763 FETCH 1 RFC822.HEADER
fetchmail: IMAP< * 1 FETCH (RFC822.HEADER {365}
reading message [email protected]:1 of 1 (365 header octets) About to rewrite Return-Path: <[email protected]>...
...rewritten version is Return-Path: <[email protected]>.
About to rewrite From: [email protected]...
...rewritten version is From: [email protected].
About to rewrite Cc: recipient list not shown: ;...
...rewritten version is Cc: recipient list not shown: ;.
fetchmail: Parsing envelope "Delivered-To" names "Delivered-To: [email protected]"
fetchmail: passed through [email protected] matching isabell.uber.space

Trying to connect to fd75:6272:7370:12e::2/8024...connection failed.
Trying to connect to [IPv4 Adress]  ...connected.
fetchmail: LMTP< 220 stardust.uberspace.de GNU Mailman LMTP runner 2.0
fetchmail: LMTP> LHLO stardust.uberspace.de
fetchmail: LMTP< 250-stardust.uberspace.de
fetchmail: LMTP< 250-SIZE 33554432
fetchmail: LMTP< 250-8BITMIME
fetchmail: LMTP< 250 HELP
fetchmail: forwarding to isabell.local.uberspace.de/8024
fetchmail: LMTP> MAIL FROM:<[email protected]> SIZE=365
fetchmail: LMTP< 250 OK
fetchmail: LMTP> RCPT TO:<[email protected]>
fetchmail: LMTP< 250 Ok
fetchmail: LMTP> DATA
fetchmail: LMTP< 354 End data with <CR><LF>.<CR><LF>

This assumes that mailing list has address [email protected]. At least the domain of the mailing list address must end in isabell.uber.space (subdomain.isabell.uber.space is also fine), otherwise the configuration option localdomains isabell.uber.space must be adapted to contain (a suffix of) the domain. This options is crucial for multi drop mode. Without it no username replacement is done.

Maybe you could also add a postmaster address or the option no bouncemail (I'll leave an inline comment), to stop fetchmail from sending to isabell via LMTP. I did both of this after finishing the initial version of this guide.

- Fix some errors spotted by @jskvbinmv (Thanks!)
- Add options to redirect bounce mails, so fetchmail does not try to send theme to mailman
@jskvbinmv
Copy link

This assumes that mailing list has address [email protected]. At least the domain of the mailing list address must end in isabell.uber.space (subdomain.isabell.uber.space is also fine), otherwise the configuration option localdomains isabell.uber.space must be adapted to contain (a suffix of) the domain.

That was the problem I left it at isabell.uber.space. Changing it to lists.mydomain.tld resolved the error.

Thanks for your work on this! As I am just a guide follower I couldn't have figured out on my own how to get rid of qmail files.

This also fixes #1741

Just some changes to remove qmail
@kimdiallo
Copy link
Contributor

Please excuse the long time you had to wait for the merge. We have written out qmail and revised the structure a little.

@kimdiallo kimdiallo merged commit 53ef5da into Uberspace:main Sep 18, 2024
4 checks passed
@nichtmax
Copy link
Member

@frafl please get in touch via [email protected] for your well earned goodie!

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

Successfully merging this pull request may close these issues.

4 participants