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

Typo in master.cf for automatic list configuration #93

Closed
simonelbaz opened this issue Aug 22, 2022 · 7 comments
Closed

Typo in master.cf for automatic list configuration #93

simonelbaz opened this issue Aug 22, 2022 · 7 comments

Comments

@simonelbaz
Copy link

Hi,

As mentionned in https://lists.sympa.community/arc/fr/2015-07/msg00027.html, recipient should be used instead of user.

@simonelbaz
Copy link
Author

May I propose a PR to fix the issue ?

Thanks

@ikedas
Copy link
Member

ikedas commented Aug 23, 2022

@simonelbaz , thank you for reporting bug in the documentation!

No PR is needed this time. Instead, just to be sure, could you confirm the following?

  • After replacing ${user} in master.cf with ${recipient}, try to send to multiple automatic addresses at once. e.g.
    To: auto-aaa@lists.domain.com, auto-bbb@lists.domain.com

Will both automatic lists be successfully created? If they won't (only one or none of them were created), maybe following lines have to be added into main.cf.

sympabounce_destination_recipient_limit = 1
sympafamily_destination_recipient_limit = 1
sympa_destination_recipient_limit = 1

Could you please confirm whether thses lines are needed or not?

@simonelbaz
Copy link
Author

The test is:

debian@sympa02:~$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 sympa02.domain.com ESMTP Postfix (Debian/GNU)      
ehlo test
250-sympa02.domain.com      
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250-SMTPUTF8
250 CHUNKING
mail from: <test@domain.com>                  
250 2.1.0 Ok
rcpt to: <listespersonnelles-uid7-grp7@lists.domain.com>       
250 2.1.5 Ok
rcpt to: <listespersonnelles-uid8-grp8@lists.domain.com>       
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject: test7

test7.
.
250 2.0.0 Ok: queued as 5EB736063B 

Sympa logs show:

sympa-web-21_1  | Aug 23 12:15:53 sympa-web-21 postfix/pipe[315]: 9AC6F60652: to=<listespersonnelles-uid7-grp7@lists.domain.com>, relay=sympafamilylistespersonnelles, delay=0.04, delays=0.02/0.01/0/0.01, dsn=5.3.0, status=bounced (command line usage error. Command output: /usr/local/libexec/familyqueue: usage error, two arguments expected : list-name family-name ) 

Do you want more info ?

Apparently, more than 1 recipient is not allowed by /usr/local/libexec/familyqueue.

@simonelbaz
Copy link
Author

simonelbaz commented Aug 24, 2022

I finally understood your question :)

Yes, with:

sympabounce_destination_recipient_limit = 1
sympafamily_destination_recipient_limit = 1
sympa_destination_recipient_limit = 1
debian@sympa02:~$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 sympa02.domain.com ESMTP Postfix (Debian/GNU)      
ehlo test
250-sympa02.domain.com      
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250-SMTPUTF8
250 CHUNKING
mail from: <test@domain.com>                  
250 2.1.0 Ok
rcpt to: <listespersonnelles-uid16-grp1@lists.domain.com>       
250 2.1.5 Ok
rcpt to: <listespersonnelles-uid16-grp2@lists.domain.com>       
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject: test16

test
.
250 2.0.0 Ok: queued as 1CF8160654 

Result:

sympa-web-21_1  | Aug 24 16:16:43 sympa-web-21 postfix/pipe[294]: A960660656: to=<listespersonnelles-uid16-grp1@lists.domain.com>, relay=sympafamilylistespersonnelles, delay=1, delays=0.02/0.01/0/1, dsn=2.0.0, status=sent (delivered via sympafamilylistespersonnelles service (list-name:listespersonnelles-uid16-grp1@lists.domain.com, family-name:listespersonnelles))       
sympa-web-21_1  | Aug 24 16:16:43 sympa-web-21 postfix/pipe[295]: A960660656: to=<listespersonnelles-uid16-grp2@lists.domain.com>, relay=sympafamilylistespersonnelles, delay=1, delays=0.02/0.02/0/1, dsn=2.0.0, status=sent (delivered via sympafamilylistespersonnelles service (list-name:listespersonnelles-uid16-grp2@lists.domain.com, family-name:listespersonnelles)) 

Mails are sent.

@ikedas
Copy link
Member

ikedas commented Aug 25, 2022

Thanks for confirming my concern. I corrected the documentation: e3d869d

If there are no problems, please feel free to close this issue. Thanks again!

@simonelbaz
Copy link
Author

Thanks @ikedas .
I am trying to understand the sympabounce role.
From the bounce documentation (https://www.postfix.org/bounce.8.html), bounce notifies the sender with a delivery status information.

Should the sympabounce send the delivery status information to the user (and not the recipient) ?

Thanks

@ikedas
Copy link
Member

ikedas commented Aug 25, 2022

sympabounce transport uses bouncequeue program. It is not related to bounce(8) daemon of Postfix.

sympabounce transport aims saving bounce messages into bounce spool ($SPOOLDIR/bounce). bounced.pl daemon of Sympa picks up and analyzes these messages to execute bounce management.

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

No branches or pull requests

2 participants