Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to configure the postfix so that depending on which internal domain he got the message he sent to the appropriate smtp server. I do it on the example of gmail about O365. This is my configuration:
Hello all,
I am trying to configure the postfix so that depending on which internal domain he got the message he sent to the appropriate smtp server. I do it on the example of gmail about O365. This is my configuration:
At this time, only sending from gmail@gmail.local works and for O365 there is such an error:
Code:
321D0100A34: from=<o365@o365.local>, size=422, nrcpt=1 (queue active)
Nov 14 10:30:51 smtprelay postfix/smtp[6261]: 321D0100A34: SASL authentication failed; server smtp.gmail.com[173.194.73.108] said: 535-5.7.8 Username and Password not accepted. Learn more at?535 5.7.8 https://support.google.com/mail/?p=BadCredentials i22sm2015187ljg.94 - gsmtp
Nov 14 10:30:51 smtprelay postfix/smtp[6261]: connect to smtp.gmail.com[2a00:1450:4010:c0d::6d]:587: Network is unreachable
Nov 14 10:30:51 smtprelay postfix/smtp[6261]: 321D0100A34: to=<myemail@mydomain.com>, relay=none, delay=0.43, delays=0.07/0/0.36/0, dsn=4.4.1, status=deferred (connect to smtp.gmail.com[2a00:1450:4010:c0d::6d]:587: Network is unreachable)
After hashing the entry #relayhost = [smtp.gmail.com]:587 in main.cf, nothing works and every message wants to come out via O365 but he fails.
Code:
Nov 14 10:16:08 smtprelay postfix/qmgr[5995]: 31D7F100A34: from=<o365@o365.local>, size=422, nrcpt=1 (queue active)
Nov 14 10:16:38 smtprelay postfix/smtp[6013]: connect to xxx.mail.protection.outlook.com[104.47.1.36]:25: Connection timed out
Nov 14 10:15:00 smtprelay postfix/qmgr[5995]: 560EF100A34: from=<gmail@gmail.local>, size=437, nrcpt=1 (queue active)
Nov 14 10:15:30 smtprelay postfix/smtp[6013]: connect to xxx.mail.protection.outlook.com[104.47.0.36]:25: Connection timed out
What's wrong with the configuration?
So you took the advice in your other (duplicate) thread about enabling transport mapping. Did you look at/think about the messages you're getting?? It's telling you very clearly that the user credentials aren't correct/accepted, and even gave you a link to look at. Did you look at it?
Also look up what the message is for O365; it's in the Microsoft knowlegebase.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.