I have switched to migadu as an email provider, I use the following setup, but get an error:
This is what works in e.g. Thunderbird:
How can I get this to work?
This is what works in e.g. Thunderbird:
How can I get this to work?
In SMTP Plugin
Share this post:
Responses (5)
-
Accepted Answer
-
Accepted Answer
Nick Howitt wrote:
Thanks. Documentation updated.
I am not sure why you are using /etc/postfix/rewrite. Can't you just change the Mail Domain in the Mail Settings?
What is "myhost" doing? There is normally a variable "myhostname" which is set by ClearOS.
smtp_enforce_tls has been deprecated.Instead use smtp_tls_security_level which is already set to "may". Having it set will mean that smtp_enforce_tls is ignored.
Migadu is mij mail provider, it has the mx records for familie-dokter.net,
If I would use
a mail to anyuser@familie-dokter.net the SMTP server will try and deliver locally while I want it to use Migadu. So I used a maildomain that is not familie-dokter.net. The rewrite is needed because Migadu does not accept logging in as anyuser@familie-dokter.net while the From:header says familie-dokter.lan... I could have used aliases or .forwards but in doing it like this I am able to send mail to any new mail user created for familie-dokter.net without the need for a change at my clearos server. myhost = localhost as I wanted to make sure it is not binding to the outside address (scared of creating a relay :-) )mydomain = familie-dokter.net
If there are better ways of doing this, I am by no mean an expert on all this, any advise is appreciated.. -
Accepted Answer
Thanks. Documentation updated.
I am not sure why you are using /etc/postfix/rewrite. Can't you just change the Mail Domain in the Mail Settings?
What is "myhost" doing? There is normally a variable "myhostname" which is set by ClearOS.
smtp_enforce_tls has been deprecated.Instead use smtp_tls_security_level which is already set to "may". Having it set will mean that smtp_enforce_tls is ignored. -
Accepted Answer
Thank you Nick,
I now have it running in the way that I want it...Just for reference this is what I added:
/etc/postfix/main.cf:
mydomain = familie-dokter.lan
myhost=localhost
smtp_always_send_ehlo = yes
smtp_enforce_tls = yes
smtp_generic_maps = hash:/etc/postfix/rewrite
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.trust.crt
sasl_password:
[smtp.migadu.com]:587 fake-address@familie-dokter.net:*************
/etc/postfix/rewrite:
@familie-dokter.lan @familie-dokter.net
familie-dokter.lan familie-dokter.net
localhost familie-dokter.net
I know some of it is overkill, but very happy that it works.
There is a small error in the description that you reference SMTP Authentication to ISP
It says:
In chapter starttls it says:
The ISP's mail server, username, and password are kept in a separate file: /etc/postfix/sasl_passwd. The format is:
[hostname] usernameassword
But in the described case this should be:
[hostname]:587 usernameassword
After I changed that it all started to fall in place! -
Accepted Answer
The mail settings app does not support STARTTLS. What you need is SMTP Authentication to ISP for your normal e-mail clients. You can then set up the SMTP Settings to relay via your own mail server (use localhost:25).
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »