- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: sendmail configuration issue with non-standard...
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2008 08:03 AM
05-28-2008 08:03 AM
sendmail configuration issue with non-standard SMTP port
What changes would I need to make to sendmail.cf or other files to make this work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2008 10:30 AM
05-28-2008 10:30 AM
Re: sendmail configuration issue with non-standard SMTP port
Inbound or outbound?
IF its outbound, you might just want to have iptables firewall do a bit of port forwarding.
Otherwise you need to change sendmail.mc and muse m4 to compile a new sendmail.cf
sendmail.cf is not human readable IMO, sendmail.mc is.
http://www.sendmail.org
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2008 10:32 AM
05-28-2008 10:32 AM
Re: sendmail configuration issue with non-standard SMTP port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2008 12:44 PM
05-28-2008 12:44 PM
Re: sendmail configuration issue with non-standard SMTP port
http://wiki.xdroop.com/space/sendmail/smart+host+ports
Normally, your firewall won't block outgoing packets.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2008 09:04 AM
05-29-2008 09:04 AM
Re: sendmail configuration issue with non-standard SMTP port
iptables -t nat -A OUTPUT -p tcp -d mail.server.ip.addr --dport 25 --to-destination mail.server.ip.addr:8080 -j DNAT
This redirects any outgoing TCP connection to the mail server's port 25 to the port 8080 instead. Connection tracking is automatically invoked to ensure any returning packets are modified too, so the applications at either end can work just as usual.
In the viewpoint of any program on this host, including Sendmail, that particular mail server is now effectively running on port 25, not 8080.
Of course, this is just one of the many ways to skin this particular cat...
Note that this is a "nat" rule, not the usual "filter" rule, so a simple "iptables -L" won't display it. You'll need to use "iptables -t nat -L" to see it.
MK