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.
Why would my isp be blocking it? I don't need to add/modify my iptable rule(s)?
ISPs usually block outgoing port 25 in order to stop spam from their clients. And also they offer their smtp server as a relay (smarthost).
You can ask them and see what you need to do.
They said they do block it, and to use port 587 to get around this. Do you know what they mean/how to do this?
You should configure sendmail to use an external MTA (like your ISP for example) as a smarthost and to connect to it on the submission port (587) as port 25 is blocked.. Ask you ISP for connection details if you want to use them.
Or you can use a public mailserver, where you have an account, like gmail as a smarthost.
echo "Subject: sendmail test" | sendmail -v email
WARNING: local host name (server) is not qualified; see cf/README: WHO AM I?
email... Connecting to [127.0.0.1] via relay...
email... Deferred: Connection refused by [127.0.0.1]
echo "Subject: sendmail test" | sendmail -v email
WARNING: local host name (server) is not qualified; see cf/README: WHO AM I?
email... Connecting to [127.0.0.1] via relay...
email... Deferred: Connection refused by [127.0.0.1]
This is happening because all email clients will try to connect to port 25 by default.
Most important is that changing your local sendmail smtp port it's useless in your case:
That is because your sendmail will still try to connect to port 25 of the recipient's mail server in order to deliver the mail and since outgoing port 25 traffic is blocked by your ISP, you'll still be at the same situation.
Use the example in my previous post in order to setup sendmail to use the submission port (587) of an external smarthost.
This looks like a paid service. If you want to pay, then it's ok.
Otherwise use the example in my post #21 to setup a smarthost for your local sendmail to connect through the submission port (587). You can replace gmail in the example with your ISP's smtp and use their credentials in order to use it.
If so, I found a tutorial to set this up: https://access.redhat.com/solutions/60803
But when it comes to "Modify the following lines in /etc/mail/sendmail.mc file as shown below:", I can not find these lines. Should I just add them?
Errors in generating sendmail.cf
*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER()
*** ERROR: FEATURE() should be before MAILER()
*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER()
*** ERROR: MAILER(local) already included
*** ERROR: MAILER(smtp) already included
*** ERROR: FEATURE() should be before MAILER()
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.