[GH-ISSUE #48] Self-Hosted | Not working with incoming emails. #93

Closed
opened 2026-03-01 17:44:43 +03:00 by kerem · 4 comments
Owner

Originally created by @tommyvange on GitHub (Jun 4, 2020).
Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/48

I recently installed the self-hosted version on my server but I cant for the life of me get incoming emails to work. It can send emails just fine (verification and password reset), but it doesn't recognize incoming emails.

The emails are not bouncing either, they are just not being handled by anonaddy.

Any ideas as to what error logs I can check or configs I can dubblecheck?

Originally created by @tommyvange on GitHub (Jun 4, 2020). Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/48 I recently installed the self-hosted version on my server but I cant for the life of me get incoming emails to work. It can send emails just fine (verification and password reset), but it doesn't recognize incoming emails. The emails are not bouncing either, they are just not being handled by anonaddy. Any ideas as to what error logs I can check or configs I can dubblecheck?
kerem closed this issue 2026-03-01 17:44:43 +03:00
Author
Owner

@willbrowningme commented on GitHub (Jun 4, 2020):

Have you checked /var/log/mail.log to see what happens when the email arrives at your server?

Have you made sure that your /etc/postfix/master.cf is correct and is set to pipe incoming emails to your web application?

<!-- gh-comment-id:638888551 --> @willbrowningme commented on GitHub (Jun 4, 2020): Have you checked /var/log/mail.log to see what happens when the email arrives at your server? Have you made sure that your /etc/postfix/master.cf is correct and is set to pipe incoming emails to your web application?
Author
Owner

@tommyvange commented on GitHub (Jun 4, 2020):

Here is the error:

Jun  4 16:40:47 EmailServer postfix/smtpd[29399]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks,   reject_unauth_destination,   check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf,   check_policy_service unix:private/policyd-spf   reject_rhsbl_helo dbl.spamhaus.org,   reject_rhsbl_reverse_client dbl.spamhaus.org,   reject_rhsbl_sender dbl.spamhaus.org,   reject_rbl_client zen.spamhaus.org   reject_rbl_client dul.dnsbl.sorbs.net
Jun  4 16:40:47 EmailServer postfix/smtpd[29399]: connect from mail-yb1-f176.google.com[209.85.219.176]
Jun  4 16:40:47 EmailServer postfix/anvil[29400]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks,   reject_unauth_destination,   check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf,   check_policy_service unix:private/policyd-spf   reject_rhsbl_helo dbl.spamhaus.org,   reject_rhsbl_reverse_client dbl.spamhaus.org,   reject_rhsbl_sender dbl.spamhaus.org,   reject_rbl_client zen.spamhaus.org   reject_rbl_client dul.dnsbl.sorbs.net
Jun  4 16:40:47 EmailServer postfix/smtpd[29399]: Anonymous TLS connection established from mail-yb1-f176.google.com[209.85.219.176]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
Jun  4 16:40:48 EmailServer postfix/trivial-rewrite[29401]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks,   reject_unauth_destination,   check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf,   check_policy_service unix:private/policyd-spf   reject_rhsbl_helo dbl.spamhaus.org,   reject_rhsbl_reverse_client dbl.spamhaus.org,   reject_rhsbl_sender dbl.spamhaus.org,   reject_rbl_client zen.spamhaus.org   reject_rbl_client dul.dnsbl.sorbs.net
Jun  4 16:40:48 EmailServer postfix/spawn[29403]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks,   reject_unauth_destination,   check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf,   check_policy_service unix:private/policyd-spf   reject_rhsbl_helo dbl.spamhaus.org,   reject_rhsbl_reverse_client dbl.spamhaus.org,   reject_rhsbl_sender dbl.spamhaus.org,   reject_rbl_client zen.spamhaus.org   reject_rbl_client dul.dnsbl.sorbs.net
Jun  4 16:40:48 EmailServer policyd-spf[29404]: prepend Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.176; helo=mail-yb1-f176.google.com; envelope-from=MY_GMAIL_ADDRESS@gmail.com; receiver=<UNKNOWN>
Jun  4 16:40:48 EmailServer postfix/cleanup[29405]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks,   reject_unauth_destination,   check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf,   check_policy_service unix:private/policyd-spf   reject_rhsbl_helo dbl.spamhaus.org,   reject_rhsbl_reverse_client dbl.spamhaus.org,   reject_rhsbl_sender dbl.spamhaus.org,   reject_rbl_client zen.spamhaus.org   reject_rbl_client dul.dnsbl.sorbs.net
Jun  4 16:40:48 EmailServer postfix/smtpd[29399]: 41A1B4256C: client=mail-yb1-f176.google.com[209.85.219.176]
Jun  4 16:40:48 EmailServer postfix/cleanup[29405]: 41A1B4256C: message-id=<CACxQPPnw5M-ypPwkThmaD1-yEF=5sREU4VrJ-PO=h2kmh45ghA@mail.gmail.com>
Jun  4 16:40:48 EmailServer opendkim[6109]: 41A1B4256C: s=20161025 d=gmail.com SSL
Jun  4 16:40:48 EmailServer opendmarc[6440]: 41A1B4256C: gmail.com pass
Jun  4 16:40:48 EmailServer postfix/qmgr[21657]: 41A1B4256C: from=<MY_GMAIL_ADDRESS@gmail.com>, size=2840, nrcpt=1 (queue active)
Jun  4 16:40:48 EmailServer postfix/pipe[29406]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks,   reject_unauth_destination,   check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf,   check_policy_service unix:private/policyd-spf   reject_rhsbl_helo dbl.spamhaus.org,   reject_rhsbl_reverse_client dbl.spamhaus.org,   reject_rhsbl_sender dbl.spamhaus.org,   reject_rbl_client zen.spamhaus.org   reject_rbl_client dul.dnsbl.sorbs.net
Jun  4 16:40:48 EmailServer postfix/smtpd[29399]: disconnect from mail-yb1-f176.google.com[209.85.219.176] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Jun  4 16:40:48 EmailServer postfix/bounce[29414]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks,   reject_unauth_destination,   check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf,   check_policy_service unix:private/policyd-spf   reject_rhsbl_helo dbl.spamhaus.org,   reject_rhsbl_reverse_client dbl.spamhaus.org,   reject_rhsbl_sender dbl.spamhaus.org,   reject_rbl_client zen.spamhaus.org   reject_rbl_client dul.dnsbl.sorbs.net
Jun  4 16:40:48 EmailServer postfix/pipe[29406]: 41A1B4256C: to=<ee84668f-ca69-428b-b063-61b6398348d9@MY_ANONADDY_DOMAIN.com>, relay=anonaddy, delay=0.68, delays=0.45/0.01/0/0.22, dsn=5.3.0, status=bounced (Command died with status 1: "php". Command output:     Symfony\Component\Debug\Exception\FatalThrowableError  : Call to undefined function PhpMimeMailParser\mailparse_msg_create()    at /var/www/anonaddy/vendor/php-mime-mail-parser/php-mime-mail-parser/src/Parser.php:195     191|         if (substr($data, -1) != "\n") {     192|             $data = $data.PHP_EOL;     193|         }     194|    > 195|         $this->resource = mailparse_msg_create();     196|         // does not parse incrementally, fast memory hog might explode     197|         mailparse_msg_parse($this->resource, $data);     198|         $this->data = $data;     199|         $this->parse();    Exception trace:    1   PhpMimeMailParser\Parser::setText()       /var/www/anonaddy/app/Console/Commands/ReceiveEmail.php:346    2   App\Console\Commands\ReceiveEmail::getParser()       /var/www/anonaddy/app/Console/Commands/ReceiveEmail.php:68    Please use the argument -v to see more details. )
Jun  4 16:40:48 EmailServer postfix/cleanup[29405]: C4C5A42576: message-id=<20200604144048.C4C5A42576@mail.MY_ANONADDY_DOMAIN.com>
Jun  4 16:40:48 EmailServer postfix/bounce[29414]: 41A1B4256C: sender non-delivery notification: C4C5A42576
Jun  4 16:40:48 EmailServer postfix/qmgr[21657]: C4C5A42576: from=<>, size=7012, nrcpt=1 (queue active)
Jun  4 16:40:48 EmailServer postfix/qmgr[21657]: 41A1B4256C: removed
Jun  4 16:40:48 EmailServer postfix/smtp[29415]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks,   reject_unauth_destination,   check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf,   check_policy_service unix:private/policyd-spf   reject_rhsbl_helo dbl.spamhaus.org,   reject_rhsbl_reverse_client dbl.spamhaus.org,   reject_rhsbl_sender dbl.spamhaus.org,   reject_rbl_client zen.spamhaus.org   reject_rbl_client dul.dnsbl.sorbs.net
Jun  4 16:40:48 EmailServer postfix/smtp[29415]: Trusted TLS connection established to gmail-smtp-in.l.google.com[2a00:1450:4010:c0a::1a]:25: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
Jun  4 16:40:49 EmailServer postfix/smtp[29415]: C4C5A42576: to=<MY_GMAIL_ADDRESS@gmail.com>, relay=gmail-smtp-in.l.google.com[2a00:1450:4010:c0a::1a]:25, delay=0.51, delays=0/0.01/0.17/0.32, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[2a00:1450:4010:c0a::1a] said: 550-5.7.1 [MY.SERVER.IPV6.ADDRESS::1] Our system has detected that this message does 550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and 550-5.7.1 authentication. Please review 550-5.7.1  https://support.google.com/mail/?p=IPv6AuthError for more information 550 5.7.1 . z16si2249690ljj.495 - gsmtp (in reply to end of DATA command))
Jun  4 16:40:49 EmailServer postfix/qmgr[21657]: C4C5A42576: removed

I have redacted personal details like domains, emails and IP-addresses.

From what I can see it looks like gmail is bouncing the forwarded emails, would this also cause it to not show up in the statistics on the dashboard?

More importantly, do you have any idea how to fix it? I really don't understand the article google linked.

<!-- gh-comment-id:638900438 --> @tommyvange commented on GitHub (Jun 4, 2020): Here is the error: ``` Jun 4 16:40:47 EmailServer postfix/smtpd[29399]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf, check_policy_service unix:private/policyd-spf reject_rhsbl_helo dbl.spamhaus.org, reject_rhsbl_reverse_client dbl.spamhaus.org, reject_rhsbl_sender dbl.spamhaus.org, reject_rbl_client zen.spamhaus.org reject_rbl_client dul.dnsbl.sorbs.net Jun 4 16:40:47 EmailServer postfix/smtpd[29399]: connect from mail-yb1-f176.google.com[209.85.219.176] Jun 4 16:40:47 EmailServer postfix/anvil[29400]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf, check_policy_service unix:private/policyd-spf reject_rhsbl_helo dbl.spamhaus.org, reject_rhsbl_reverse_client dbl.spamhaus.org, reject_rhsbl_sender dbl.spamhaus.org, reject_rbl_client zen.spamhaus.org reject_rbl_client dul.dnsbl.sorbs.net Jun 4 16:40:47 EmailServer postfix/smtpd[29399]: Anonymous TLS connection established from mail-yb1-f176.google.com[209.85.219.176]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) Jun 4 16:40:48 EmailServer postfix/trivial-rewrite[29401]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf, check_policy_service unix:private/policyd-spf reject_rhsbl_helo dbl.spamhaus.org, reject_rhsbl_reverse_client dbl.spamhaus.org, reject_rhsbl_sender dbl.spamhaus.org, reject_rbl_client zen.spamhaus.org reject_rbl_client dul.dnsbl.sorbs.net Jun 4 16:40:48 EmailServer postfix/spawn[29403]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf, check_policy_service unix:private/policyd-spf reject_rhsbl_helo dbl.spamhaus.org, reject_rhsbl_reverse_client dbl.spamhaus.org, reject_rhsbl_sender dbl.spamhaus.org, reject_rbl_client zen.spamhaus.org reject_rbl_client dul.dnsbl.sorbs.net Jun 4 16:40:48 EmailServer policyd-spf[29404]: prepend Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.176; helo=mail-yb1-f176.google.com; envelope-from=MY_GMAIL_ADDRESS@gmail.com; receiver=<UNKNOWN> Jun 4 16:40:48 EmailServer postfix/cleanup[29405]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf, check_policy_service unix:private/policyd-spf reject_rhsbl_helo dbl.spamhaus.org, reject_rhsbl_reverse_client dbl.spamhaus.org, reject_rhsbl_sender dbl.spamhaus.org, reject_rbl_client zen.spamhaus.org reject_rbl_client dul.dnsbl.sorbs.net Jun 4 16:40:48 EmailServer postfix/smtpd[29399]: 41A1B4256C: client=mail-yb1-f176.google.com[209.85.219.176] Jun 4 16:40:48 EmailServer postfix/cleanup[29405]: 41A1B4256C: message-id=<CACxQPPnw5M-ypPwkThmaD1-yEF=5sREU4VrJ-PO=h2kmh45ghA@mail.gmail.com> Jun 4 16:40:48 EmailServer opendkim[6109]: 41A1B4256C: s=20161025 d=gmail.com SSL Jun 4 16:40:48 EmailServer opendmarc[6440]: 41A1B4256C: gmail.com pass Jun 4 16:40:48 EmailServer postfix/qmgr[21657]: 41A1B4256C: from=<MY_GMAIL_ADDRESS@gmail.com>, size=2840, nrcpt=1 (queue active) Jun 4 16:40:48 EmailServer postfix/pipe[29406]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf, check_policy_service unix:private/policyd-spf reject_rhsbl_helo dbl.spamhaus.org, reject_rhsbl_reverse_client dbl.spamhaus.org, reject_rhsbl_sender dbl.spamhaus.org, reject_rbl_client zen.spamhaus.org reject_rbl_client dul.dnsbl.sorbs.net Jun 4 16:40:48 EmailServer postfix/smtpd[29399]: disconnect from mail-yb1-f176.google.com[209.85.219.176] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7 Jun 4 16:40:48 EmailServer postfix/bounce[29414]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf, check_policy_service unix:private/policyd-spf reject_rhsbl_helo dbl.spamhaus.org, reject_rhsbl_reverse_client dbl.spamhaus.org, reject_rhsbl_sender dbl.spamhaus.org, reject_rbl_client zen.spamhaus.org reject_rbl_client dul.dnsbl.sorbs.net Jun 4 16:40:48 EmailServer postfix/pipe[29406]: 41A1B4256C: to=<ee84668f-ca69-428b-b063-61b6398348d9@MY_ANONADDY_DOMAIN.com>, relay=anonaddy, delay=0.68, delays=0.45/0.01/0/0.22, dsn=5.3.0, status=bounced (Command died with status 1: "php". Command output: Symfony\Component\Debug\Exception\FatalThrowableError : Call to undefined function PhpMimeMailParser\mailparse_msg_create() at /var/www/anonaddy/vendor/php-mime-mail-parser/php-mime-mail-parser/src/Parser.php:195 191| if (substr($data, -1) != "\n") { 192| $data = $data.PHP_EOL; 193| } 194| > 195| $this->resource = mailparse_msg_create(); 196| // does not parse incrementally, fast memory hog might explode 197| mailparse_msg_parse($this->resource, $data); 198| $this->data = $data; 199| $this->parse(); Exception trace: 1 PhpMimeMailParser\Parser::setText() /var/www/anonaddy/app/Console/Commands/ReceiveEmail.php:346 2 App\Console\Commands\ReceiveEmail::getParser() /var/www/anonaddy/app/Console/Commands/ReceiveEmail.php:68 Please use the argument -v to see more details. ) Jun 4 16:40:48 EmailServer postfix/cleanup[29405]: C4C5A42576: message-id=<20200604144048.C4C5A42576@mail.MY_ANONADDY_DOMAIN.com> Jun 4 16:40:48 EmailServer postfix/bounce[29414]: 41A1B4256C: sender non-delivery notification: C4C5A42576 Jun 4 16:40:48 EmailServer postfix/qmgr[21657]: C4C5A42576: from=<>, size=7012, nrcpt=1 (queue active) Jun 4 16:40:48 EmailServer postfix/qmgr[21657]: 41A1B4256C: removed Jun 4 16:40:48 EmailServer postfix/smtp[29415]: warning: /etc/postfix/main.cf, line 100: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-recipient-access.cf, mysql:/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf, check_policy_service unix:private/policyd-spf reject_rhsbl_helo dbl.spamhaus.org, reject_rhsbl_reverse_client dbl.spamhaus.org, reject_rhsbl_sender dbl.spamhaus.org, reject_rbl_client zen.spamhaus.org reject_rbl_client dul.dnsbl.sorbs.net Jun 4 16:40:48 EmailServer postfix/smtp[29415]: Trusted TLS connection established to gmail-smtp-in.l.google.com[2a00:1450:4010:c0a::1a]:25: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) Jun 4 16:40:49 EmailServer postfix/smtp[29415]: C4C5A42576: to=<MY_GMAIL_ADDRESS@gmail.com>, relay=gmail-smtp-in.l.google.com[2a00:1450:4010:c0a::1a]:25, delay=0.51, delays=0/0.01/0.17/0.32, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[2a00:1450:4010:c0a::1a] said: 550-5.7.1 [MY.SERVER.IPV6.ADDRESS::1] Our system has detected that this message does 550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and 550-5.7.1 authentication. Please review 550-5.7.1 https://support.google.com/mail/?p=IPv6AuthError for more information 550 5.7.1 . z16si2249690ljj.495 - gsmtp (in reply to end of DATA command)) Jun 4 16:40:49 EmailServer postfix/qmgr[21657]: C4C5A42576: removed ``` _I have redacted personal details like domains, emails and IP-addresses._ From what I can see it looks like gmail is bouncing the forwarded emails, would this also cause it to not show up in the statistics on the dashboard? More importantly, do you have any idea how to fix it? I really don't understand the article google linked.
Author
Owner

@willbrowningme commented on GitHub (Jun 4, 2020):

The error looks like the issue is that you do not have the mailparse php module installed.

Please try running php -m from the server and see if the mailparse module is shown.

<!-- gh-comment-id:638904458 --> @willbrowningme commented on GitHub (Jun 4, 2020): The error looks like the issue is that you do not have the mailparse php module installed. Please try running `php -m` from the server and see if the mailparse module is shown.
Author
Owner

@tommyvange commented on GitHub (Jun 4, 2020):

That was it, thank you so much!

For anyone else running into the same issue, you can install mailparse by using to following command:
sudo apt-get install php-mailparse

<!-- gh-comment-id:638926005 --> @tommyvange commented on GitHub (Jun 4, 2020): That was it, thank you so much! For anyone else running into the same issue, you can install mailparse by using to following command: `sudo apt-get install php-mailparse`
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/anonaddy#93
No description provided.