Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Send emails when smtp gateway is not configured
System Administration
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
-
- Forums
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- Infrastructure Solutions German
- L’Avenir de l’IT
- IT e Trasformazione Digitale
- Enterprise Topics
- ИТ для нового стиля бизнеса
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Forums
-
Blogs
-
InformationEnglish
Topic Options
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-17-2009 12:35 AM
08-17-2009 12:35 AM
Send emails when smtp gateway is not configured
Hi
Is there a way to send emails using the mailx command if the smtp gateway is not configured properly?
Server is HP-UX.
Regards
Feng Lin
Is there a way to send emails using the mailx command if the smtp gateway is not configured properly?
Server is HP-UX.
Regards
Feng Lin
2 REPLIES
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-17-2009 01:07 AM
08-17-2009 01:07 AM
Re: Send emails when smtp gateway is not configured
On HP-UX, mailx uses sendmail to actually transfer the email.
If sendmail on HP-UX is not configured to use a particular SMTP gateway (known as the "smarthost" configuration), sendmail will attempt to use DNS to find the recipient's public mail server (or one of its alternates, using DNS MX records) and will try to connect to the destination server's SMTP port (TCP/25) directly to transfer the email.
If this is not successful (maybe because the system has limited access to Internet DNS or outgoing SMTP traffic is blocked by a firewall), the message remains in a local mail queue and sendmail will attempt to re-send it for a while (usually several days).
Because MS-Windows machines are often plagued by malware that attempts to send junk email, many enterprise firewall administrators will limit outgoing SMTP access to legitimate mail servers only.
MK
If sendmail on HP-UX is not configured to use a particular SMTP gateway (known as the "smarthost" configuration), sendmail will attempt to use DNS to find the recipient's public mail server (or one of its alternates, using DNS MX records) and will try to connect to the destination server's SMTP port (TCP/25) directly to transfer the email.
If this is not successful (maybe because the system has limited access to Internet DNS or outgoing SMTP traffic is blocked by a firewall), the message remains in a local mail queue and sendmail will attempt to re-send it for a while (usually several days).
Because MS-Windows machines are often plagued by malware that attempts to send junk email, many enterprise firewall administrators will limit outgoing SMTP access to legitimate mail servers only.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-17-2009 11:22 PM
08-17-2009 11:22 PM
Re: Send emails when smtp gateway is not configured
you have to disable the Locally DNS Resolve for recipent mail and add the SMTP relay to the
/etc/mail/sendmail.cf file
here are the Steps
1. vi /etc/mail/sendmail.cf file
2.# "Smart" relay host (may be null)
DS ==> you have to enter the IP address of the SMTP relay that you have after DS.
3. In vi, do the following to get to the right place:
/^S96 [Return]
You should be at the top of Ruleset 96
4. Scroll down and comment out the following line:
# pass to name server to make hostname canonical
R$* < @ $* $~P > $* $: $1 < @ $[ $2 $3 $] > $4
It should now be:
# pass to name server to make hostname canonical
#R$* < @ $* $~P > $* $: $1 < @ $[ $2 $3 $] > $4
Stop and Start the Sendmail service
wish you the best
/etc/mail/sendmail.cf file
here are the Steps
1. vi /etc/mail/sendmail.cf file
2.# "Smart" relay host (may be null)
DS ==> you have to enter the IP address of the SMTP relay that you have after DS.
3. In vi, do the following to get to the right place:
/^S96 [Return]
You should be at the top of Ruleset 96
4. Scroll down and comment out the following line:
# pass to name server to make hostname canonical
R$* < @ $* $~P > $* $: $1 < @ $[ $2 $3 $] > $4
It should now be:
# pass to name server to make hostname canonical
#R$* < @ $* $~P > $* $: $1 < @ $[ $2 $3 $] > $4
Stop and Start the Sendmail service
wish you the best
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP