- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail problem!
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
10-16-2002 12:54 AM
10-16-2002 12:54 AM
Hostname: hosta
IP address: 192.168.0.1
Mask: 255.255.255.0
Default Gateway: 192.168.0.2
This server can't send mails directly to Internet. But it can connect to hostb.
Another SMTP server's IP address is 192.168.100.1 (hostb,255.255.255.0). This server can send all mails to Internet. And it allows smtp relay from hosta.
I want to send emails from hosta through hostb to Internet. How to config my sendmail.cf file?
Another other attentions must I pay?
TKS a lot.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 01:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 01:42 AM
10-16-2002 01:42 AM
Re: Sendmail problem!
Hi,
> I want to send emails from hosta through
> hostb to Internet. How to config my
> sendmail.cf file?
well preferably :-)
1) if you use DNS
hostb must be MX in DNS.
2) if you don't use DNS
add hostb in /etc/hosts and alias mailhost in the same line :
192.168.100.1 hostb mailhost
add :
DRhostb
DShostb
in sendmail.cf
restart sendmail daemon.
try the config with :
mailx -v email
see http://www.sendmail.org
Beacreful, the ways of the sendmail are impenetrable :-)
Good Luck
Jean-Yves
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 01:45 AM
10-16-2002 01:45 AM
Re: Sendmail problem!
Dj$w.
DS
Restart your sendmail
/sbin/init.d/sendmail stop & start.
The important thing is that
you should be able to do a nslookup of hostb from hosta.
That should be the important thing.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 07:56 AM
10-16-2002 07:56 AM
Re: Sendmail problem!
in the hosta sendmail.cf set :
DShostb
If you use DNS name resolution on hosta you may also need to modify the following lines in sendmail.cf to avoid internet name resolution from hosta:
comment out the line:
# pass to name server to make hostname canonical
R$* $| $* < @ $* > $* $: $2 < @ $[ $3 $] > $4
and change each of the mailers to have the 0 flag like:,
Msmtp,P=[IPC],F=0mDFMuX, S=EnvFromSMTP/HdrFromSMTP .....
I had this problem a couple of weeks ago, now it works fine !!
Emmanuel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 12:18 PM
10-16-2002 12:18 PM
Re: Sendmail problem!
Make sure on host A if u do a ping smtp server or the IP adres you should be able to go through . incase that is not happening then u have to add entry in /etc/hosts file so that it works .
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 02:21 AM
10-17-2002 02:21 AM
Re: Sendmail problem!
#sendmail -v hpux@hp.com
hp.com: Name server timeout.
...
Why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 03:24 AM
10-17-2002 03:24 AM
Re: Sendmail problem!
do this as a test:
nslookup hp.com
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 03:29 AM
10-17-2002 03:29 AM
Re: Sendmail problem!
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 04:04 AM
10-17-2002 04:04 AM
Re: Sendmail problem!
nslookup hp.com
should resolve
Revert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 05:00 AM
10-17-2002 05:00 AM
Re: Sendmail problem!
Hi,
Check :
1) the /etc/resolv.conf file
+
nslookup www.hp.com
ping www.hp.com
traceroute www.hp.com
Who is the DNS servers ?
The MX is OK ?
2) /etc/nsswitch.conf
check 'dns' in line host
3) Firewall ?
the firewall must be authorize the port 53/udp
and 53/tcp and port 25 (smtp)
53 = port DNS in /etc/services
udp = client/server communication
tcp = primary/secondary communication
4) Is what you use a proxy (WEB, DNS) on your DMZ?
5) If the DNS is OK
try :
mailx -v hosta
....
.
mailx -v hostb
....
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 11:50 PM
10-17-2002 11:50 PM
Re: Sendmail problem!
Your timeout DNS means that you resolv.conf isn't properly configured. In the host file,
add hostb fully, I mean with the domain extension !!
192.168.100.1 hostb.domain.com
hope that help
Benoit