Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
My guess is that it has something to do with the domain, since my machine is bound to a local domain (ec2.internal), without any DNS record. Maybe GMAIL and other public SMTP servers reject this kind of connections. Anyway, I'd appreciate some help on this.
AWS by default only allows a handful of direct outbound e-mails per day from an ec2 instance. You need to send through their SES service - https://aws.amazon.com/ses/
Edit: From memory I think you used to be able to request unlimited outbound, but that may have been a while ago.
AWS by default only allows a handful of direct outbound e-mails per day from an ec2 instance. You need to send through their SES service - https://aws.amazon.com/ses/
Edit: From memory I think you used to be able to request unlimited outbound, but that may have been a while ago.
this is definitely an AWS issue. if the documentation there does not resolve the issue, talk with AWS support. they may want to be sure your mail server never relays email. what have you done toe sure of that?
abr 23 08:34:10 MASTER postfix/pickup[1782]: 07AF3121F3A: uid=1000 from=<itb>
abr 23 08:34:10 MASTER postfix/cleanup[2959]: 07AF3121F3A: message-id=<20240423063410.07AF3121F3A@MASTER.domain.here>
abr 23 08:34:10 MASTER postfix/qmgr[1783]: 07AF3121F3A: from=<account@MASTER.domain.here>, size=282, nrcpt=1 (queue active)
abr 23 08:39:10 MASTER postfix/smtp[2961]: 07AF3121F3A: conversation with gmail-smtp-in.l.google.com[173.194.76.27] timed out while receiving the initial server greeting
abr 23 08:39:10 MASTER postfix/smtp[2961]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c00::1a]:25: Network is unreachable
abr 23 08:44:10 MASTER postfix/smtp[2961]: 07AF3121F3A: conversation with alt1.gmail-smtp-in.l.google.com[142.250.153.26] timed out while receiving the initial server greeting
abr 23 08:44:10 MASTER postfix/smtp[2961]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4013:c16::1b]:25: Network is unreachable
dig -t MX gmail.com
Code:
gmail.com. 2181 IN MX 40 alt4.gmail-smtp-in.l.google.com.
gmail.com. 2181 IN MX 20 alt2.gmail-smtp-in.l.google.com.
gmail.com. 2181 IN MX 30 alt3.gmail-smtp-in.l.google.com.
gmail.com. 2181 IN MX 5 gmail-smtp-in.l.google.com.
gmail.com. 2181 IN MX 10 alt1.gmail-smtp-in.l.google.com.
Telnet:
Code:
telnet gmail-smtp-in.l.google.com. 25
Trying 173.194.76.27...
Connected to gmail-smtp-in.l.google.com.
Escape character is '^]'.
So apparently my server is able to connect with Gmail SMTP server, however, POSTFIX fails.
Why is this?
Thanks!
EDIT: some minutes later the logs showed the problem:
Code:
This mail has been blocked because the sender is unauthenticated. 550-5.7.26 Gmail requires all senders to authenticate with either SPF or DKIM. 550-5.7.26 550-5.7.26 Authentication results: 550-5.7.26 DKIM = did not pass 550-5.7.26 SPF [master.domain.here]
Last edited by banderas20; 04-23-2024 at 02:24 AM.
Reason: new info
EDIT: some minutes later the logs showed the problem:
Code:
This mail has been blocked because the sender is unauthenticated. 550-5.7.26 Gmail requires all senders to authenticate with either SPF or DKIM. 550-5.7.26 550-5.7.26 Authentication results: 550-5.7.26 DKIM = did not pass 550-5.7.26 SPF [master.domain.here]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.