Skip to content
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

[mail] implement ISP relay (indirect) delivery feature #553

Open
cyberb opened this issue Nov 14, 2020 · 0 comments
Open

[mail] implement ISP relay (indirect) delivery feature #553

cyberb opened this issue Nov 14, 2020 · 0 comments

Comments

@cyberb
Copy link
Member

cyberb commented Nov 14, 2020

Currently Gmail and probably other mail providers do not allow sending mail directly to them:
https://support.google.com/mail/answer/10336?p=NotAuthorizedError

We could implement a UI to choose direct/indirect mode with mail server relay address/login/password.
Probably it should be done inside Roundcube mail UI (plug-in?) as it is the only Mail UI we have at the moment.

Workaround (gmail example)

Add login and password

vim.tiny  /var/snap/mail/common/sasl_passwd

[smtp.gmail.com]:587 email:password

Encrypt

/snap/mail/current/postfix/usr/sbin/postmap -c /var/snap/mail/common/config/postfix /var/snap/mail/common/sasl_passwd

Change mail config (lost on every upgrade)

vim.tiny /var/snap/mail/common/config/postfix/main.cf

Find existing relayhost and change it.

relayhost = [smtp.gmail.com]:587

Append to the end:

smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/var/snap/mail/common/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt

Restart mail:

snap restart mail

Send a message to google mail to check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant