1752337 Members
5571 Online
108787 Solutions
New Discussion юеВ

Re: Configure mail Alert

 
mahbub
Advisor

Configure mail Alert

Dear all,

I want to configure mail alert on HP-UX to route mail on exchange 2007 server.

Anybody help me to configure for this issue.

Regards
Mahbub
12 REPLIES 12
Modris Bremze
Esteemed Contributor

Re: Configure mail Alert

Hi. If you want to send messages from this server to others, forward it to smarthost, then you could modify /etc/sendmail.cf file and add the DS directive (around line 720) -

# "Smart" relay host (may be null)
DSsmarthost.company.com

Just add your smarthost/relay IP or hostname (check if it resolves first) after DS (no spaces between), restart sendmail and that should do it.
mahbub
Advisor

Re: Configure mail Alert

Hi,

I modified /etc/sendmail.cf file and add the DS directive (around line 720) -

# "Smart" relay host (may be null)
DSsmarthost.company.com

and restart sendmail but does not working.
What will be our next step?

Regards
Mahbub

TTr
Honored Contributor

Re: Configure mail Alert

> What will be our next step?
Check the sendmail logs to see what happens when you send an email.

Talk to your exchange administrator and check if the exchange server allows SMTP relaying from your server.
Michael Steele_2
Honored Contributor

Re: Configure mail Alert

Hi

nslookup smartrelay.company.com
nslookup ip_address of above
Do they work?
Support Fatherhood - Stop Family Law
Modris Bremze
Esteemed Contributor

Re: Configure mail Alert

You could also try using sendmail with the -v switch. It might give some clues as well.
Ralph Grothe
Honored Contributor

Re: Configure mail Alert

Hi Mahbub,

most likely your Exchange server isn't accepting to relay mail from your HP-UX host.

You should look at your HP-UX host's /var/adm/syslog/mail.log if mails you sent from this host are accepted by the remote relay's MTA (viz. your domain's Exchange server).
If so you will usually find an entry like "queued as ..." (where the ellipses stand for a message id under which the remote relay put it into its mail queue).
Or a successful entry may read like "queued for delivery" or similar.
If on the other hand the remote relay rejected mails from your host it often will say so by an entry like, "reject=550 ... Relaying denied".

You could also try to talk to the remote relay directly.
The simplest way would be to talk plain SMTP over a telnet session.

Open a telnet client from your HP-UX host to the hostname or IP address of your Exchange server on port 25.

Then use the SMTP commands, helo, mail from, rcpt to, data, ".", quit

But if the Exchange server rejects mails from your host it will probably already tell so once it received the "helo" command along with your host's domain as argument or a "mail from" an unsuitable sender.

Then you need to talk to the postmaster of your Exchange Server and ask them to configure their MTA to accept mails from your HP-UX host.


Madness, thy name is system administration
mahbub
Advisor

Re: Configure mail Alert

Hi

looking up FILES
Name: mtn.com.af
Address: 192.168.15.151
Aliases: mailserver

I try to send mail by -s switch but error message showed.
Dec 14 13:18:04 iconprod sendmail[19111]: nBA6Na615846: to=billing-support@mtn.com.af, ctladdr=root (0/3), delay=4+01:54:28, xdelay=00:00:00, mailer=esmtp, pri=17760140, relay=mtn.com.af., dsn=4.0.0, stat=Deferred: Connection timed out with mtn.com.af.


Regards
Mahbub
Michael Steele_2
Honored Contributor

Re: Configure mail Alert

Hi

I would verify that the billings email id/alias exist with the mail admin.
Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: Configure mail Alert

What happens when you email to your own email id or a known to work id?

echo test | mailx -s "test" alias@domain.com
Support Fatherhood - Stop Family Law