mirror of
https://github.com/anonaddy/anonaddy.git
synced 2026-04-25 14:15:53 +03:00
[GH-ISSUE #485] Emails from certain senders are not being forwarded correctly #919
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/anonaddy#919
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ririko5834 on GitHub (Jul 24, 2023).
Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/485
I selfhost anonaddy using docker. But anonaddy seems to not forward some emails. For example, I don't get emails from the courier company that my package will be delivered the next day. Other emails I usually normally have.
Can you check it?
I don't receive emails from serv@intime.sk (they are not forwarded on anonaddy). I receive emails from that mail address normally on my gmail.
After running postqueue -p, I can see there the undelivered emails in queue

Later, there are more emails:

None of them are listed in failed delivery tab, why?

Logs:
Why was it deferred?

There are many of those logs
None of those emails were saved in failed deliveries, how does failed delivery work, it saves there only if the alias recipient email address refused the forwarded email.
I would appreciate any help. Do you think that it's caused because the sender serv@intime.sk did not pass all anonaddy anti-spam checks? If yes, is there a way to whitelist that domain so it will skip all the checks and forward it straight?
@willbrowningme commented on GitHub (Jul 26, 2023):
The message "An error has occurred, please try again later" means that the error has happened in the web application.
You need to check the web application logs which I think are in
storage/logsfor the Docker image.Failed deliveries only show outbound delivery attempts from the AnonAddy server to you (or anyone else). Inbound failures or rejections are not shown there.
@ririko5834 commented on GitHub (Jul 27, 2023):
Inbound failures or rejections are not shown there.
So how to investigate those?
@ririko5834 commented on GitHub (Jul 27, 2023):
Its in postqueue, its outside of web dashboard

@ririko5834 commented on GitHub (Jul 27, 2023):
Anonaddy doesnt forward those emails
@ririko5834 commented on GitHub (Jul 27, 2023):
Can you tell me how to disable all those security checks for that specific domain so it will be forwarded correctly
@ririko5834 commented on GitHub (Jul 27, 2023):
Inbound failures or rejections are not shown there.
Feature request: Save those there too, so people can see which mails were rejected.
@willbrowningme commented on GitHub (Jul 27, 2023):
That error occurs when an exception is thrown from the web application here - https://github.com/anonaddy/anonaddy/blob/master/app/Console/Commands/ReceiveEmail.php#L182
As I've already mentioned you need to look in
/data/storage/logsfor the web app Laravel logs to see why the exception has been thrown.@ririko5834 commented on GitHub (Jul 27, 2023):
Ok, let me send you log files from the dates of arrival time showed on postqueue
@ririko5834 commented on GitHub (Jul 27, 2023):
11.7 - https://pastebin.com/raw/4EgthhbX
12.7 - https://pastebin.com/raw/mhpZNSZb
13.7 - https://pastebin.com/raw/SwwzhEnF
Is it caused by that encoding error?
@ririko5834 commented on GitHub (Jul 28, 2023):
@willbrowningme reopen it, it wasnt solved, I still don't get those courier emails
@ririko5834 commented on GitHub (Jul 29, 2023):
?
@willbrowningme commented on GitHub (Jul 31, 2023):
Seems to be an issue with iconv here - https://github.com/php-mime-mail-parser/php-mime-mail-parser/blob/main/src/Charset.php#L334
Would need to see the original email to reproduce the error.
https://github.com/nextcloud/mail/pull/8327/files could be a potential fix.
@ririko5834 commented on GitHub (Aug 1, 2023):
Do you think that the charset error causes the emails to fail forwarding
@ririko5834 commented on GitHub (Aug 1, 2023):
When I run postqueue -p, the emails are not there anymore. Does postqueue get auto wiped, how often? I could run postcat to view the message if it was there, but its gone.
Would copy of email help that I have received before directly on my gmail where emails from courier normally come?
@ririko5834 commented on GitHub (Aug 7, 2023):
@willbrowningme Another email from courier wasnt forwarded. Should I do postcat and send you the email which wasn't forwarded for further investigation?

@ririko5834 commented on GitHub (Aug 7, 2023):
Here are all laravel logs from today - laravel-2023-08-07.log
@ririko5834 commented on GitHub (Aug 7, 2023):
Here is the email copy from postcat, the email got stucked in queue. I have removed sensitive information from the email copy.
I hope it helps you to investigate and fix the issue as soon as possible.
@willbrowningme commented on GitHub (Aug 7, 2023):
Seems to work fine when testing locally. If you run
php -mon your server are theiconvandmbstringextensions listed?@ririko5834 commented on GitHub (Aug 8, 2023):
I run anonaddy in docker, did you test it in docker?
And how exactly did you test it? Is there any cmd to retry email forwarding. Also those emails in queue will be gone soon, do you know how often is it wiped or can I set it somewhere
@ririko5834 commented on GitHub (Aug 9, 2023):
@willbrowningme
@willbrowningme commented on GitHub (Aug 10, 2023):
No I did not test it in Docker as I'm not familiar with it and don't use it myself.
I tested it by pasting the contents of the email into
tests/emails/email.emland then running:By default messages are cleared from the deferred queue after 5 days - https://www.postfix.org/postconf.5.html#maximal_queue_lifetime.
@ririko5834 commented on GitHub (Aug 10, 2023):
Do you know how to set postfix/anonaddy to send copy of those emails which weren't forwarded because
(An error has occurred, please try again later.)to different email address where I will be able to see them. Or to forward them to Discord webhook@ririko5834 commented on GitHub (Aug 10, 2023):
More emails is getting stucked there
@ririko5834 commented on GitHub (Aug 15, 2023):
?
@ririko5834 commented on GitHub (Dec 23, 2023):
It still does the same even after update to addy.io Can you help me to fix it ?
@willbrowningme commented on GitHub (Jun 26, 2024):
Closing this for now as I cannot replicate it locally or on addy.io
@ririko5834 commented on GitHub (Jun 27, 2024):
But I still dont get emails from sps

@ririko5834 commented on GitHub (Jun 27, 2024):
@willbrowningme Is this possible. It would work as a temp workaround. I need to somehow forward emails that got stuck in postfix queue to one email address.
@willbrowningme commented on GitHub (Jun 27, 2024):
You can try using transport_maps in
/etc/postfix/main.cfto direct any emails from intime.sk to a different email address.https://www.linuxbabe.com/mail-server/postfix-transport-map-relay-map-flexible-email-delivery
@ririko5834 commented on GitHub (Jun 27, 2024):
Not sure how to exactly do it.
I think that it doesn't matter when all emails from serv@intime.sk (sent to different aliases) will be sent directly to my gmail account without using anonaddy forwarding at all, there should be just somewhere to which alias email address was that email sent.
How can I do this? I am willing to donate to you if you can teach me/told me exactly what to do.
@ririko5834 commented on GitHub (Aug 1, 2024):
CAn you help me please? Its really annoying? @willbrowningme
@ririko5834 commented on GitHub (Aug 7, 2024):
@willbrowningme Can you investigate it? I cant execute whatever commands you want in my anonaddy docker container on portainer and also directly on my VPS. If you can fix it, I will donate to you
@ririko5834 commented on GitHub (Aug 8, 2024):
It still doesn't work.
I run execute cmd inside the docker and there these cmds:
nano /etc/postfix/main.cfadded there
transport_maps = hash:/etc/postfix/transportthen
nano /etc/postfix/transportpostmap /etc/postfix/transportand
postfix reloadbut it doesn't work still
@ririko5834 commented on GitHub (Aug 20, 2024):
@willbrowningme