mirror of
https://github.com/anonaddy/anonaddy.git
synced 2026-04-25 06:05:55 +03:00
[GH-ISSUE #82] No recipient addresses found in message header #680
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#680
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 @sandikata on GitHub (Sep 28, 2020).
Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/82
anonaddy.txt
What could be wrong there?
There's recipient added for such mail alias.
Postfix is working, and i am able to send messages directly.
@willbrowningme commented on GitHub (Sep 29, 2020):
Is the recipient validated that you've added?
Is there any error shown in the Laravel log file in
storage/logs?@sandikata commented on GitHub (Sep 29, 2020):
Well, recipients are validated. I've followed your documentation. But there's nothing mentioned about usage.
Is it there something special in usage?
@sandikata commented on GitHub (Sep 29, 2020):
Where's located laravel log ?
@sandikata commented on GitHub (Sep 29, 2020):
https://termbin.com/yjw9 laravel.log
@sandikata commented on GitHub (Sep 29, 2020):
This is how it works if i test it from console with.
echo "This is the main body of the mail" | mail -s "Subject of the Email" -r test@rosenthepayner.info rosen@aleksandrov.techBut i don't even know how it can be used with anonaddy.
@sandikata commented on GitHub (Sep 29, 2020):
https://anonaddy.com/help/sending-email-from-an-alias/
nothing is happening if i try with this tutorial.
rosen@aleksandrov.tech for example is verified recipient, and i am using it, and then adding the first+hello+whatever=example.com@johndoe.anonaddy.com with another mail which should receive the message forwarded from rosen@aleksandrov.tech.
Anyway it doesn't work, that's why i am asking you if there's something special, because i've made everything from your doc, and it doesn't work at all.
@willbrowningme commented on GitHub (Sep 29, 2020):
Looking at your Laravel log file the issue is shown as:
production.ERROR: Unable to load DKIM Private Key []Do you have any value for
ANONADDY_DKIM_SIGNING_KEYin your.envfile?@sandikata commented on GitHub (Sep 29, 2020):
I have one.
ANONADDY_DKIM_SIGNING_KEY=/etc/opendkim/keys/mail.perspecta.org/default.private@sandikata commented on GitHub (Sep 29, 2020):
Should i remove it? I just followed the docs, and if that's wrong, it's because of documentation, which mention this DKIM key for addin domain aliases
@willbrowningme commented on GitHub (Sep 29, 2020):
That looks correct, do you also have
ANONADDY_DKIM_SELECTORset?Does your user who runs the application have the correct permissions to open the
/etc/opendkim/keys/mail.perspecta.org/default.privatefile?@sandikata commented on GitHub (Sep 29, 2020):
just opendkim user, regarding to your docs, but app is started with user ralexandrov which do not have access to this key.
@willbrowningme commented on GitHub (Sep 29, 2020):
I know you've hidden the passwords in your .env file but I would delete that comment if I were you as it still contains your APP_KEY and other data.
@sandikata commented on GitHub (Sep 29, 2020):
And the user is member of opendkim group, but however do not have access to this file
@sandikata commented on GitHub (Sep 29, 2020):
ANONADDY_DKIM_SELECTOR=default@sandikata commented on GitHub (Sep 29, 2020):
is that correct for example ?
As recipient i am using verified one.
@willbrowningme commented on GitHub (Sep 29, 2020):
What does it say if you run
cat /etc/opendkim/keys/mail.perspecta.org/default.privateas your ralexandrov user.Yes that example above should send an email from the alias suka@mailforwarder.perspecta.org to ralesandrov@ns1.bg
@sandikata commented on GitHub (Sep 29, 2020):
another one error in log
@sandikata commented on GitHub (Sep 29, 2020):
Well, after chmod 644 i am able to cat the file, but with default 600 were not able to do so.
@sandikata commented on GitHub (Sep 29, 2020):
That's what i am doing. And it should forward it, if works this method.
@willbrowningme commented on GitHub (Sep 29, 2020):
I'll update the docs to include a bit about giving the group read permissions to the file.
It should work now.
@sandikata commented on GitHub (Sep 29, 2020):
but it still crying for recipient... Really i do not understand.
test+raleksandrov=ns1.bg@rosenthepayner.infotest@rosenthepayner.info exist. but..
@willbrowningme commented on GitHub (Sep 29, 2020):
Is the
production.ERROR: Unable to load DKIM Private Key []message still being shown in the Laravel log file?@sandikata commented on GitHub (Sep 29, 2020):
@willbrowningme commented on GitHub (Sep 29, 2020):
The error is being thrown in the DKIMSigner.php file line 675.
If you run
php -mcan you seeopenssl?@sandikata commented on GitHub (Sep 29, 2020):
@sandikata commented on GitHub (Sep 29, 2020):
There's also another error
Meanwile...
@willbrowningme commented on GitHub (Sep 29, 2020):
The "Error while reading line from the server" can happen when restarting redis or the server, it should be fine once started and is related to the queue workers.
Does your
/etc/opendkim/keys/mail.perspecta.org/default.privatefile start with:-----BEGIN RSA PRIVATE KEY-----and end with-----END RSA PRIVATE KEY-----?Don't post the private key here.
@sandikata commented on GitHub (Sep 29, 2020):
Yes, it starts with
It's valid too.
@sandikata commented on GitHub (Sep 29, 2020):
But it doesn't change anything, i am struggling with this since 2 months.
test@getmefollowed.com is also valid in anonaddy. but as you can see.. the same No recipient addresses found.
I am out of idea from a long time ago. But in office ask me to to solve it somehow.
@willbrowningme commented on GitHub (Sep 29, 2020):
If you have cleared the Laravel log and it is still showing the
production.ERROR: Unable to load DKIM Private Key []then the issue must still be related to that.Please try updating to the latest commit I just made to the repo and then try the following:
If you remove the value for
ANONADDY_DKIM_SIGNING_KEYand leave it blank in your.envand clear the cachephp artisan config:cachedoes it then work?@sandikata commented on GitHub (Sep 29, 2020):
I've tried to update to last commit, and then never worked, just error 500, i don't know what's the relation between update and the error 500
I'll try another suggestions to left blank dkim env, and to clear cache.
@sandikata commented on GitHub (Sep 29, 2020):
But nothing in mailbox of rosen@aleksandrov.tech
@willbrowningme commented on GitHub (Sep 29, 2020):
Any different error shown in the Laravel log?
@sandikata commented on GitHub (Sep 29, 2020):
sendcommand.
@sandikata commented on GitHub (Sep 29, 2020):
sendfile command probably wrong, i don't know even where is set.
@willbrowningme commented on GitHub (Sep 29, 2020):
It is in
config/mail.phpand should be set as'sendmail' => '/usr/sbin/sendmail -t -XV',on line 102.Have you made changes to that line?
@sandikata commented on GitHub (Sep 29, 2020):
'sendmail' => '/usr/sbin/sendmail -t -XV',
regarding to logs there's nothing changed.
@willbrowningme commented on GitHub (Sep 29, 2020):
What version of Postfix are you running? I'm struggling to debug this as I can't see the bigger picture and general setup you've got.
@sandikata commented on GitHub (Sep 29, 2020):
But if i execute same command from console there's no problem.
@sandikata commented on GitHub (Sep 29, 2020):
root@mailforwarder:~# cat nuke-graph-directory.sh | /usr/sbin/sendmail -t -XV rosen@aleksandrov.techresult, sent to mail rosen@aleksandrov.tech
@sandikata commented on GitHub (Sep 30, 2020):
After latest commit, it works finally. Thank You.
Is it fine if i do
do-release-updateto ubuntu 20.04 ?@willbrowningme commented on GitHub (Sep 30, 2020):
That's great, you're welcome.
I can't say about upgrading to ubuntu 20.04 whether it will break anything. It is normally advised to start with 20.04 from a fresh server. I'd recommend reading up on the process of upgrading a server from 18.04 to 20.04.