-
Notifications
You must be signed in to change notification settings - Fork 6
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
Can't send from forward only account #29
Comments
It looks like postfix is checking smtpd_sender_login_maps to see if a given user has permission to send from a given address. That list is handled by https://github.com/technicalguru/docker-mailserver-postfix/blob/master/etc/dovecot/dovecot-sql.conf. I'm not an expert on postfix, but don't think this query is correct. As is, it seems like it's giving postfix permission to send as any email address that email to the account would be delivered too, even if that address isn't a domain handled by the server. Additionally, if the account's mailbox isn't enabled, it won't show up on the list. The first problem, I haven't tried writing any SQL for. It seems like it should only allow domains that it's configured for, though this is unlikely to be a huge problem as is since it's only abusable by authenticated users and the recipient's email server is likely to just detect it as spam. |
Hello @pixil98, not sure whether the problem still persists. The configuration and SQL makes sure that the sender address belongs to the account that you have authenticated before (either a mailbox or an alias for that mailbox). If you need to change this behaviour, you can map your custom SQL definition into the docker image (in etc/dovecot directory) as a volume (with single file). In case you still consider this an issue for the postfix image, please let me know here so we can improve it. Regards |
I ended up writing up two issues in this one issue: Sending from forward only accounts: Sending as forwarded email address: |
I hope I understand your issue. There is a solution through the main.cf file. This thread has a solution to this in this specific reply. |
If I create an account without a local mailbox (forward only), I'm unable to send email from that account. I get the following error when trying:
This seems wrong as I'm authenticated as the sender address so it should be considered valid. I'd like to setup some no-reply accounts for services I have running and this is preventing it.
The text was updated successfully, but these errors were encountered: