-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Emails from certain senders are not being forwarded correctly #485
Comments
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 Failed deliveries only show outbound delivery attempts from the AnonAddy server to you (or anyone else). Inbound failures or rejections are not shown there. |
Inbound failures or rejections are not shown there. |
Anonaddy doesnt forward those emails |
Can you tell me how to disable all those security checks for that specific domain so it will be forwarded correctly |
Inbound failures or rejections are not shown there. Feature request: Save those there too, so people can see which mails were rejected. |
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 |
Ok, let me send you log files from the dates of arrival time showed on postqueue |
11.7 - https://pastebin.com/raw/4EgthhbX Is it caused by that encoding error? |
@willbrowningme reopen it, it wasnt solved, I still don't get those courier emails |
? |
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. |
Do you think that the charset error causes the emails to fail forwarding |
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. |
@willbrowningme Another email from courier wasnt forwarded. Should I do postcat and send you the email which wasn't forwarded for further investigation? |
Here are all laravel logs from today - laravel-2023-08-07.log |
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. |
Seems to work fine when testing locally. If you run |
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 |
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 php artisan anonaddy:receive-email /path/to/anonaddy/tests/emails/email.eml --sender=will@anonaddy.com --recipient=ebay@johndoe.anonaddy.com --local_part=ebay --extension= --domain=johndoe.anonaddy.com --size=1000 By default messages are cleared from the deferred queue after 5 days - https://www.postfix.org/postconf.5.html#maximal_queue_lifetime. |
Do you know how to set postfix/anonaddy to send copy of those emails which weren't forwarded because |
? |
It still does the same even after update to addy.io Can you help me to fix it ? |
Closing this for now as I cannot replicate it locally or on addy.io |
@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. |
You can try using transport_maps in https://www.linuxbabe.com/mail-server/postfix-transport-map-relay-map-flexible-email-delivery |
Not sure how to exactly do it. |
CAn you help me please? Its really annoying? @willbrowningme |
@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 |
It still doesn't work. then
and but it doesn't work still |
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?
The text was updated successfully, but these errors were encountered: