- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with configuration of alerts to route to o...
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
01-18-2006 03:25 AM
01-18-2006 03:25 AM
now I have SMTP mail services setup.
and my dba also have database tools that can generate alerts,
so i need to configure them to route to our mail server for relay.
(Example: As we use in windows proxy setting. and i have to give the IP address of proxy server & port no.)
i have that IP address & port no. but in HP-ux , in which file i have to make changes.
please suggest.
bunty
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 03:31 AM
01-18-2006 03:31 AM
Solution/etc/mail/sendmail.cf and add
# "Smart" relay host (may be null)
DS YourMailServerName .
Also update /etc/hosts with IP and Hostname of the email server .
/sbin/init.d/sendmail stop
/sbin/init.d./sendmail start.
One suggestions , these topics are discussed million times in ITRC .Before posting just do a search in ITRC . I am sure you will get your answers from previous posts .
Regards,
BL-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 04:38 AM
01-18-2006 04:38 AM
Re: problem with configuration of alerts to route to our mail server for relay
The SmartHost
DS=
Stop/start sendmail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 05:24 AM
01-18-2006 05:24 AM
Re: problem with configuration of alerts to route to our mail server for relay
port is 25 for this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 05:25 AM
01-18-2006 05:25 AM
Re: problem with configuration of alerts to route to our mail server for relay
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 05:25 AM
01-18-2006 05:25 AM
Re: problem with configuration of alerts to route to our mail server for relay
You should be able to contact directly your relay server (smart host), to test that use:
telnet relay_server 25
QUIT
If you can connect, then configure sendmail as described above. Ensure that your relay server is in the /etc/hosts file or in DNS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 05:36 AM
01-18-2006 05:36 AM
Re: problem with configuration of alerts to route to our mail server for relay
All this good stuff will come to nothing if you don't authorize relay for the hpux system on the system you want to relay.
All mail solutions now default to not allowing relay. The target server will have to be configured to allow relay.
To choose a target server:
Exchange servers can do it, but the admins always resist. I don't know why.
Firewall gateways are great, but only if they are properly patched. Otherwise they mail fail to send or even mangle the mail.
Diagnostic test:
sendmail -v -d8.99 -d38.99 alert@your.net
type some text
.
This will get you exact diagnostics and determine the exact cause and solution for any issues that come up.
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
01-18-2006 05:40 AM
01-18-2006 05:40 AM
Re: problem with configuration of alerts to route to our mail server for relay
but this error while starting the sendmail service.
# /sbin/init.d/sendmail start
WARNING: local host name () is not qualified; fix $j in config file
/etc/mail/aliases: 7 aliases, longest 9 bytes, 88 bytes total
sendmail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 05:56 AM
01-18-2006 05:56 AM
Re: problem with configuration of alerts to route to our mail server for relay
the entry for the hostname of the server
ip hostname hostname.com
Now in your /etc/mail/sendmail.cf file
search for $j
make an entry like
add hostname.com to Dj$w
Dj$w.hostname.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 06:03 AM
01-18-2006 06:03 AM
Re: problem with configuration of alerts to route to our mail server for relay
# tail /var/adm/syslog/mail.log
Jan 18 12:55:17 dipper sendmail[11146]: alias database /etc/mail/aliases rebuilt by root
Jan 18 12:55:17 dipper sendmail[11146]: /etc/mail/aliases: 7 aliases, longest 9 bytes, 88 bytes total
Jan 18 12:55:17 dipper sendmail[11148]: starting daemon (8.11.1): SMTP+queueing@00:30:00
Jan 18 12:55:33 dipper sendmail[11151]: k0IItXd11151: from=root, size=150, class=0, nrcpts=1, msgid=<200601181855.k0IItXd11151@dipper.infores.com>, relay=root@localhost
Jan 18 12:55:33 dipper sendmail[11153]: k0IItXd11151: to=vipin.singhal@symphonysv.com, ctladdr=root (0/3), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=120150, relay=170.118.8.18, dsn=5.1.2, stat=Host unknown (Name server: 170.118.8.18: host not found)
Jan 18 12:55:33 dipper sendmail[11153]: k0IItXd11151: k0IItXc11153: DSN: Host unknown (Name server: 170.118.8.18: host not found)
Jan 18 12:55:33 dipper sendmail[11153]: k0IItXc11153: to=| /iri/sysadm/bin/myadmin , ctladdr=local-notification (1/0), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=30123, dsn=5.3.0, stat=unknown mailer error 127
Jan 18 12:55:33 dipper sendmail[11153]: k0IItXc11153: k0IItXd11153: return to sender: unknown mailer error 127
Jan 18 12:55:33 dipper sendmail[11153]: k0IItXd11153: to=| /iri/sysadm/bin/myadmin , ctladdr=local-notification (1/0), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=30223, dsn=5.3.0, stat=unknown mailer error 127
Jan 18 12:55:33 dipper sendmail[11153]: k0IItXc11153: Saved message in /var/tmp/dead.letter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 06:35 AM
01-18-2006 06:35 AM
Re: problem with configuration of alerts to route to our mail server for relay
find the line starting with DS (if there is none, add a new line like this
DS(serverhostname)
save and exit.
you do not need to restart sendmail but if you want, you can stop and restart sendmail at this time
then test it by sending an email to yourself
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 06:38 AM
01-18-2006 06:38 AM
Re: problem with configuration of alerts to route to our mail server for relay
It seems that you don't used the host name or the host name cannot be resolved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 07:22 AM
01-18-2006 07:22 AM
Re: problem with configuration of alerts to route to our mail server for relay
thanks for your support,
now i am able to send mails... :-)
I want to know one more thing,
if i want to send mail to many users, how can i do this?
now i am using only one address like:
#mailx -s "Subject" bunty@company.com
i need to send mails to 4-5 users together.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 07:35 AM
01-18-2006 07:35 AM
Re: problem with configuration of alerts to route to our mail server for relay
like so
cd /etc/mail
vi aliases
# Local Aliases
your group name here: abcd@domain.com, efgh@domain.com and so on
add the group name and all the corresponding email addresses that need to be notified
after you have finished adding the group, save and quit this file
then type newaliases at the command so the new
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 07:38 AM
01-18-2006 07:38 AM
Re: problem with configuration of alerts to route to our mail server for relay
type newaliases at the command line in order to rebuild the database for the mail aliases file and then you should be able to send an email to this group and it should send to everyone email address who was assigned to that group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 07:47 AM
01-18-2006 07:47 AM
Re: problem with configuration of alerts to route to our mail server for relay
but right now i need to sendmail to different differnt users of different group.
may i use:
#mailx -s "Subject" bunty1@company.com,bunty2@company2.com,bunty3@company3.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 08:24 AM
01-18-2006 08:24 AM
Re: problem with configuration of alerts to route to our mail server for relay
mailx -s "test" user1@domain user2@domain user3@domain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 08:32 AM
01-18-2006 08:32 AM