LinuxQuestions.org
Visit Jeremy's Blog.
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 03-27-2014, 01:37 PM   #1
tomlaino
LQ Newbie
 
Registered: Nov 2012
Posts: 8

Rep: Reputation: Disabled
Change Outbound Sendmail Port


I am sure this is a basic question and I am sure it has been asked and answered many times over on this forum but I cant seem to find the answer that I am looking for.

I am using CentOS 6 with sendmail. My ISP blocks port 25 for outbound mail. I need to use port 587 but I cant seem to find where to change it. I have tried looking through sendmail.cf but I dont see anything definitive that should be changed. Any help would be appreciated.
 
Old 03-27-2014, 05:00 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
I assume you use an M4 macro file to generate sendmail.cf?

According to this blog post, this is how you specify an alternate port number for a Smart Host:
Code:
define(`SMART_HOST’,`isp.smart.host’)dnl
define(`RELAY_MAILER_ARGS’,`TCP $h 587′)dnl
I haven't actually tried this myself, so YMMV.
 
Old 03-27-2014, 09:13 PM   #3
tomlaino
LQ Newbie
 
Registered: Nov 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Wink

Ok. So I have a question. I am not using an ISP. My sendmail server is on a LAN (server.mycompany.local). So what would I put where isp.smart.host would be?

This works on my other servers where port 25 is not blocked.
 
Old 03-28-2014, 12:46 AM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
When you said you needed to "use port 587", I assumed you meant "I need my local mail server to use port 587 on my ISP's Smart Host for all outbound mail".

Using port 587 for outbound mail in general without using a Smart Host isn't going to work, for the simple reason that the majority of mail servers on the Internet doesn't listen on port 587. If you cannot send mail directly to other servers on TCP port 25, you will have to relay all outbound mail via the Smart Host provided by your ISP.
 
1 members found this post helpful.
  


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
what is outgoing/outbound connection source port & destination port ? linuxcenter Linux - Newbie 2 06-25-2013 05:00 AM
How can i change my sendmail port number in centos 5.4 saravanakumar Linux - Server 2 08-04-2011 10:40 AM
outbound port 80 winchester169 Linux - Security 1 07-21-2006 03:32 PM
Sendmail works.. outbound only :( ziggy25 Linux - Networking 2 12-20-2005 05:56 PM

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

All times are GMT -5. The time now is 10:35 PM.

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