LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-07-2018, 07:34 PM   #16
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled

No, I am not able to.

Why would my isp be blocking it? I don't need to add/modify my iptable rule(s)?
 
Old 04-08-2018, 02:04 AM   #17
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by sniper8752 View Post
No, I am not able to.

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.
 
Old 04-08-2018, 02:51 AM   #18
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
^ Yes, it's very typical for an ISP to block port 25. In fact, if an ISP doesn't do that, I'd question using them. Just MHO.
 
Old 04-25-2018, 10:59 AM   #19
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
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?
 
Old 04-25-2018, 11:40 AM   #20
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by sniper8752 View Post
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?
sendmail by default will use port 25. Reconfigure it to use port 587 instead.

I don't use sendmail, so you'll need to search for something like
Quote:
configure sendmail port
or wait for help here.
 
Old 04-25-2018, 12:19 PM   #21
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by sniper8752 View Post
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.
 
Old 05-04-2018, 11:38 PM   #22
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
Here is what I did:

https://www.qualityology.com/tech/co...other-than-25/

Code:
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]
 
Old 05-05-2018, 10:50 AM   #23
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by sniper8752 View Post
Here is what I did:

https://www.qualityology.com/tech/co...other-than-25/

Code:
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.
 
Old 05-06-2018, 08:06 AM   #24
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
Would the steps look like this: https://support.google.com/a/answer/2956491?hl=en?
 
Old 05-06-2018, 09:16 AM   #25
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by sniper8752 View Post
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.
 
Old 05-06-2018, 05:34 PM   #26
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
I would think this should be public knowledge... Would this be what I am looking for: https://www.xfinity.com/support/arti...-xfinity-email ?
 
Old 05-06-2018, 05:50 PM   #27
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
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?
 
Old 05-06-2018, 08:01 PM   #28
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
The way to find out answers to questions like that is to just try it.
 
Old 05-06-2018, 09:24 PM   #29
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
I am getting this error:

Code:
 (Deferred: Connection refused by [127.0.0.1])
Sounds like a iptables rule missing?
 
Old 05-06-2018, 11:45 PM   #30
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
running sendmailconfig I notice this:
Code:
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()
Is this something that should be concerning?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail is unable to get access to the outside world? unable to send email? cyberdome Linux - Server 25 04-02-2014 10:40 AM
trying to set up sendmail but unable dave247 Debian 1 10-14-2008 01:35 PM
unable to relay on sendmail Server Linux - Networking 4 01-30-2008 09:23 AM
Unable to sendmail sunhui Linux - General 2 10-14-2006 02:46 PM
Unable to send email from Sendmail rridler Linux - Software 26 07-13-2006 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration