gnanet / mailzu

MailZu-ng compatible PHP 7.2+, PHP-PDO | Based on zedzedtop/mailzu and SF.net/projects/mailzu/ | MailZu is a simple and intuitive web interface to manage Amavisd-new quarantine. Users can view their own quarantine, release/delete messages or request the release of messages. This fork of MailZu is written in PHP and requires Amavisd-new version greater than 2.7.0
GNU General Public License v2.0
14 stars 7 forks source link

Unable to release mails from quarantine #8

Closed QkiZMR closed 4 years ago

QkiZMR commented 4 years ago

I'm not able to release mails from quarantine. There's a error message in mail.log:

Jan 24 00:09:52 tesla amavis[12938]: (12938-07) SMTP: 500 5.5.2 Error: bad syntax; smtp_resp: request=release\r\n
Jan 24 00:09:52 tesla amavis[12938]: (12938-07) SMTP: 500 5.5.2 Error: bad syntax; smtp_resp: mail_id=iHsMnTatIM3U\r\n
Jan 24 00:09:52 tesla amavis[12938]: (12938-07) (!!)TROUBLE in process_request: Error writing an SMTP response to the socket: Broken pipe at (eval 107) line 1429.
Jan 24 00:09:52 tesla amavis[12938]: (12938-07) (!)Requesting process rundown after fatal error
Jan 24 00:09:52 tesla amavis[12938]: (12938-07) SMTP shutdown: Error writing an SMTP response to the socket:  at (eval 107) line 1429.\n
Jan 24 00:09:52 tesla amavis[20056]: sd_notify (no socket): STATUS=Starting child process(es), ready for work.
Jan 24 00:09:52 tesla amavis[26320]: storage and lookups will use the same connection to SQL

It look like Mailzu is sending some wrong command to AM.PDP 9998 port.

QkiZMR commented 4 years ago

I found error in Amavis config. Previously I was using policy named AM.PDP-SOCK and I didn't change it to AM.PDP. After changing and restart Amavis I can release mails from quarantine with Mailzu.

gnanet commented 4 years ago

i assumed that this will be a config issue on the amavis side, but got to reply you only now. Anyway, thank you for sharing the solution too.