- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sendmail not sending external mails
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
08-08-2005 09:26 AM
08-08-2005 09:26 AM
sendmail not sending external mails
Currently I have the sendmail.cf with the DS macro already configured and I am able to receive internal mail.
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2005 09:28 AM
08-08-2005 09:28 AM
Re: sendmail not sending external mails
What are some of the error messages?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2005 09:30 AM
08-08-2005 09:30 AM
Re: sendmail not sending external mails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2005 09:39 AM
08-08-2005 09:39 AM
Re: sendmail not sending external mails
the DNS is correct configured?
DM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2005 09:58 AM
08-08-2005 09:58 AM
Re: sendmail not sending external mails
echo "TEST MAIL" | sendmail -v test.emal@address.out
see the output and the lines added to /var/adm/syslog/mail.log
if you still don't understan the problem post to the forum these outputs
hope it can helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2005 10:29 AM
08-08-2005 10:29 AM
Re: sendmail not sending external mails
try the following;
# sendmail -q
This will force send from queue.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2005 04:07 PM
08-08-2005 04:07 PM
Re: sendmail not sending external mails
If u are having a relay server which is connected to the outside world , then u need to set the DS macro in sendmail.cf to that relay server and that machine name should be resolvable . If ur machine is directly connected to the internet and u want to send the mails directly to the outside world , then ur machine should have dns configured and the DS macro should be empty .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 01:10 AM
08-09-2005 01:10 AM
Re: sendmail not sending external mails
# mailx -s Test2 russian@hotmail.com (As root, becoming root from aalmaraz by switching user "su - ")
Here are some lines from mail.log
Aug 9 08:00:25 troll sendmail[8747]: IAA08747: from=aalmaraz, size=145, class=0, pri=30145, nrcpts=1, msgid=<200508091300.IAA08747@troll.tqmx.com>, relay=root@localhost
Aug 9 08:00:25 troll sendmail[8749]: IAA08747: to=russian@hotmail.com, ctladdr=aalmaraz (1000/4), delay=00:00:00, xdelay=00:00:00, mailer=relay, relay=srvmail.tqmx.com. [10.100.1.33], stat=User unknown
Aug 9 08:00:25 troll sendmail[8749]: IAA08747: forward /home/aalmaraz/.forward.troll+: World writable directory
Aug 9 08:00:25 troll sendmail[8749]: IAA08747: forward /home/aalmaraz/.forward+: World writable directory
Aug 9 08:00:25 troll sendmail[8749]: IAA08747: forward /home/aalmaraz/.forward.troll: World writable directory
Aug 9 08:00:25 troll sendmail[8749]: IAA08747: forward /home/aalmaraz/.forward: World writable directory
Aug 9 08:00:25 troll sendmail[8749]: IAA08747: IAA08749: DSN: User unknown
Aug 9 08:00:25 troll sendmail[8749]: IAA08749: to=aalmaraz, delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent
# mailq
Mail queue is empty
#
Formerly it was working, but since I changed to the new mail server (srvmail.tqmx.com)I have the problemes.
Hoping your help ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 01:19 AM
08-09-2005 01:19 AM
Re: sendmail not sending external mails
relay=srvmail.tqmx.com. [10.100.1.33], stat=User unknown
Are you sure that the new mail server is setup correctly?
If you have the DS directive set to the mail server and the mail goes to that server, this is all you do. The mail server does the actual routing and resolving of the mail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 01:27 AM
08-09-2005 01:27 AM
Re: sendmail not sending external mails
The other commands:
# sendmail -q
#
Nothing
The other test:
# echo "TEST MAIL" | sendmail -v ruso@hotmail.com
ruso@hotmail.com... Connecting to srvmail.tqmx.com. via relay...
220 SRVMAIL.cyoptics.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.0 ready at Tue, 9 Aug 2005 08:18:25 -0500
>>> EHLO troll.tqmx.com
250-SRVMAIL.cyoptics.com Hello [10.100.1.27]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK
>>> MAIL From:
250 2.1.0 aalmaraz@srvdns.tqmx.com....Sender OK
>>> RCPT To:
550 5.7.1 Unable to relay for ruso@hotmail.com
ruso@hotmail.com... User unknown
>>> RSET
250 2.0.0 Resetting
aalmaraz... forward: /home/aalmaraz/.forward.troll+: World writable director y
aalmaraz... forward: /home/aalmaraz/.forward+: World writable directory
aalmaraz... forward: /home/aalmaraz/.forward.troll: World writable directory
aalmaraz... forward: /home/aalmaraz/.forward: World writable directory
/home/aalmaraz/dead.letter... Saved message in /home/aalmaraz/dead.letter
Closing connection to srvmail.tqmx.com.
>>> QUIT
221 2.0.0 SRVMAIL.cyoptics.com Service closing transmission channel
The last:
the DNS is correct configured?
DM
-- Not formerly, but I changed after your recommendation but still not working.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 01:46 AM
08-09-2005 01:46 AM
Re: sendmail not sending external mails
After leaving the DS macro empty, I am able to send mail to internet.
But, my necessities are to be able to send internal and external mail, have you an idea how to make this?
somebody?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 01:51 AM
08-09-2005 01:51 AM
Re: sendmail not sending external mails
needs additional configuration. What kind of box is it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 01:55 AM
08-09-2005 01:55 AM
Re: sendmail not sending external mails
http://www5.itrc.hp.com/service/james/search.do?todo=search&admit=552267591+1117111900147+28353475&searchtext=sendmail+problem&from=forums&origin=0&wpa=forums1.itrc.hp.com:80&searchcategory=ALL&hpl=1&searchcriteria=allwords&rn=25&source=7000&chkServStor=on&presort=rank&esc=europe-support3.external.hp.com
good luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 01:56 AM
08-09-2005 01:56 AM
Re: sendmail not sending external mails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 01:58 AM
08-09-2005 01:58 AM
Re: sendmail not sending external mails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 02:04 AM
08-09-2005 02:04 AM
Re: sendmail not sending external mails
This conclusion is based on the fact that when you take the DS directive out of your server, you can get mail to the Internet.
That also means that you have adequate access and DNS service to the Internet to send mail.
If you need to relay you need to make sure the relay server will accept and relay the mail. Based on other parts of this post, specifically that the mail queue is empty.
The problem with relaying mail appears not to be on this server.
550 5.7.1 Unable to relay for ruso@hotmail.com
ruso@hotmail.com... User unknown
BTW means that ruso@hotmail.com is not a known user. This does not remind me of the response I get when I get a bounce from hotmail so it appears the relay server may have problems resolving hostnames.
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
08-09-2005 02:13 AM
08-09-2005 02:13 AM
Re: sendmail not sending external mails
1- go to /etc/nsswitch.conf
and put these lines;
hosts: files
aliases: files
2-move /etc/resolv.conf as /etc/resolv.conf_org
(means no DNS)
3-add /etc/hosts file your mail server address
4-go to /etc/mail/sendmail.cf
and find a line like DS then change it like;
DSmailserver_name
5-Finally;
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
Does it work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 03:29 AM
08-09-2005 03:29 AM
Re: sendmail not sending external mails
After the test you gave me, only internal mail works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 03:40 AM
08-09-2005 03:40 AM
Re: sendmail not sending external mails
A very good resource for sendmail issues is www.sendmail.org You can get updates,
patches, and the latest versions of sendmail.
Initial steps would be to fix the world writable directories, get the mail server able to resolve external address (DNS), then have your client point to the 'SMART HOST' by using the DS directive in the sendmail.cf file.
On the mail server, get you resolve external address? Example, what is output of 'nslookup hotmail.com'?
Do the # echo "TEST MAIL" | sendmail -v ruso@hotmail.com but do not send to ruso. We already know this user does not exist at hotmail.
You can quickly, easily, and free setup an external email account to do the testing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 06:05 AM
08-09-2005 06:05 AM
Re: sendmail not sending external mails
The problem was solved, I leave the DS macro empty and added another dns in the /etc/resolv.conf (because the email server was on another DNS). The formward also was failing (/home/user/.forward) but, I changed the file permissions and folder to 755 and the issue was solved.
Rick,
The ruso@hotmail.com was just a sample, since I thougth a malicious person (not of this forum) could use it to spam.
Thanks so much all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 06:07 AM
08-09-2005 06:07 AM
Re: sendmail not sending external mails
The problem was solved, I leave the DS macro empty and added another dns in the /etc/resolv.conf (because the email server was on another DNS). The formward also was failing (/home/user/.forward) but, I changed the file permissions and folder to 755 and the issue was solved.
Thanks so much all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 01:46 AM
08-10-2005 01:46 AM
Re: sendmail not sending external mails
I have the same problem.
works internal, Does NOT work external.
if you dont mind, pl can you share all the steps needed to configure this.
Thanks
Basheer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 02:25 AM
08-10-2005 02:25 AM
Re: sendmail not sending external mails
Here are the steps I followed:
1.Add another DNS to the /etc/resolv.conf (Since I are managing 3 domains for this server, the one I added was regarding to the SMTP server)
2. I left the sendmail DS macro empty (/etc/mail/sendmail.cf)
3. For the problems with the forwards, I changed the permissions of the user home folders:
e.g.
/home/user
#chmod 755 /home/user
#chmod 755 /home/user/.forward (you can try for this)
4. You must have enable the DNS in your /etc/nsswitch.conf:
e.g.
hosts: files [NOTFOUND=continue] dns
5. Send a HUP signal to sendmail
#ps -ef | grep sendmail
#kill -HUP PID
or
#/sbin/init.d/sendmail stop
#/sbin/init.d/sendmail start
6. Ready
Hope this helps