-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
DKIM works only for subdomain #47
Comments
As mentioned in anonaddy/anonaddy#142 I think the following file - docker/rootfs/etc/cont-init.d/03-config.sh Line 272 in d3573ee
Is anyone able to test this? |
Thanks so much for your answer! I'll try it myself and let you know. |
Your suggested change works perfectly, thank you so much! I've gone forward a made a quick PR for it: #51. Just on a sidenote: I noticed it is quite verbose to test DKIM/ DMARC/ SPF stuff manually. Is there any possibility to send emails from the anonaddy cli to any given email address? This would come in handy as there exist services to verify DKIM/ DMARC setup E2E when you send a test mail to a designated endpoint (e.g. https://dkimvalidator.com/). |
@willbrowningme Thanks for pointing this out @Flash1232 #51 has been merged, thanks. |
@Flash1232 you can send an email from the command line by first entering Laravel tinker: # Make sure you are in the web app root directory
php artisan laravel tinker and then you can run: Mail::raw("Hi there,\n\nHow are you?\n\nBye", function($message) {$message->to('hi@example.com')->from('me@mydomain.com')->subject('Hello!');}); You can customise the above, might be worth having a look at the Laravel mail documentation too. |
Thanks for your response :) That's cool, gonna take a look at that. For now I just tested by choosing "Reply to" at some random aliases. PS: I saw the Traefik example in the examples folder of the repo but, unfortunately, it lacks some specifics about how to integrate the ACME part with Postfix's SMTPD TLS. Well I did this and it seems to work quite nicely except for some weird smtpd_scache error. If I find time to fix that I'll gladly contribute my setup so that it's easier to get rollin' feature-completeish right away. Thanks again! |
Sure feel free to send a PR to enhance our examples! |
I got the whole setup to work with traefik on SwarmPit but there are some issues:
I don't get any logs even though I have
APP_DEBUG
set to true andDKIM/ DMARC_ENABLE
as well. I also have mydomain.tld.private
anddomain.tld.txt
files inside/data/dkim/
.Everything seems to work fine including sending and receiving mail via the aliases except there are no DKIM Signatures present on the mails. I don't have any file inside
storage/logs
other than the.gitignore
file (namely, nolaravel.log
). Also, sometimes after a re-deploy the web interface throws a Gateway Timeout (504) until I re-deploy again (seems to be similar to #48).EDIT: The Gateway errors were caused by using traefik along with Tecnativa docker-proxy. Resolved.
I set up SPF, DKIM, DMARC and the MX records but I haven't been able to find a way to get the PTR yet. Might this be an issue for DKIM to not work properly?
EDIT 2: PTR created.
One more thing to note is that I am hosting the app on "domain.com" whereas I am using "otherdomain.xyz" for the mail addresses/ aliases.
EDIT 2: I am now hosting everything on "otherdomain.xyz". Configs are different but the issue has been partially resolved. Will follow up on that if I can't get it to work. DKIM headers are only present on mails forwarded for "...@mail.otherdomain.xyz" but not for "...@otherdomain.xyz".
Container logs:
docker-compose.yml:
The text was updated successfully, but these errors were encountered: