1823943 Members
3501 Online
109667 Solutions
New Discussion юеВ

Sendmail Relay Denied

 
SOLVED
Go to solution
ruben_28
Occasional Advisor

Sendmail Relay Denied

Hi:

I got a sendmail server installed on HPUX 10.20, now we are migrating our relay to and hpux 11. I copied all files like is in the sendmail 10.20 (all files of /etc/mail)and i changed the host names in all files. I started the relay in the new server. All out mails are joining well, the problem is when our exchange mail server try to send a mail to out, we recive this msg:

'ruben.tapia@gmail.com' en 16/02/2005 10:43
The recipient name is not recognized
The MTS-ID of the original message is: c=US;a= ;p=Catalana de Tele;l=COLOMERS-050216094212Z-158615
MSEXCH:IMS:Catalana de Telecomunicacions:CTSOX:COLOMERS 3550 (000B09AA) 550 ... Relaying denied


Anyone got any idea about how i can fix it?

Thanks in advanced for your help.
9 REPLIES 9
Keith Bryson
Honored Contributor
Solution

Re: Sendmail Relay Denied

There is a lot that may be wrong with porting 10.20 sendmail over to 11.00. Check the following first before scrapping the configuration and starting from scratch (you can find some original examples in /usr/newconfig/etc/mail):

-Is the Dj variable set to the domain name?
-Have you got a /etc/mail/domaintable and mailertable file?

If you need to scrap the current config, look at using an mc file (macro) to build sendmail.

All the best - Keith
Arse-cover at all costs
ruben_28
Occasional Advisor

Re: Sendmail Relay Denied

I got this

Feb 16 12:43:14 priorat sendmail[4254]: MAA04254: ruleset=check_rcpt, arg1=, relay=al-pi.cattel.com [212.31.33.5] (may be forged), reject=550 ... Relaying denied

in the mail.log ... what exactly i must write in relay_host to allow releay everything ? ( i know that isn't recommended)

Ruben.
Keith Bryson
Honored Contributor

Re: Sendmail Relay Denied

Ruben

What version of sendmail do you have? Try:

what /usr/sbin/sendmail

Do you have the following lines in sendmail.cf:

# Mailer table (overriding domains)
Kmailertable dbm -o /etc/mail/mailertable

# Domain table (adding domains)
Kdomaintable dbm -o /etc/mail/domaintable

Keith
Arse-cover at all costs
Peter Godron
Honored Contributor

Re: Sendmail Relay Denied

Ruben,
we have
Fw/etc/hosts
and
FR-o /etc/hosts
in sendmail.cf
In /etc/hosts we have the names etc. of all the machines we want to receive mail from and relay for.
You have to bounce sendmail to activate.
Hope this helps.
ruben_28
Occasional Advisor

Re: Sendmail Relay Denied

priorat# what /usr/sbin/sendmail
/usr/sbin/sendmail:
Copyright (c) 1998 HEWLETT PACKARD COMPANY and its licensors,
including Sendmail, Inc., and the Regents of the
University of California. All rights reserved.
version.c 8.9.3.1 (Berkeley) 10/10/2003 (PHNE_29773)
priorat#

priorat# more sendmail.cf |grep Kma
#Kmailertable dbm -o /etc/mail/mailertable
priorat#


priorat# more sendmail.cf |grep Kdom
#Kdomaintable dbm -o /etc/mail/domaintable
priorat#


Yeah i got all.

ruben_28
Occasional Advisor

Re: Sendmail Relay Denied

As you can see i got all , but still #, and this file's don't exist realy, i must create it?
Keith Bryson
Honored Contributor

Re: Sendmail Relay Denied

Hi Ruben

As an alternative, try Peter's suggestion with the FR variable. For example:

FR-o /etc/mail/relay-domains

with the content of /etc/mail/relay-domains looking like:

gmail.com
.gmail.com
anothersubdomain.gmail.com
ahost.gmail.com

etc...

Keith
Arse-cover at all costs
ruben_28
Occasional Advisor

Re: Sendmail Relay Denied

I tried all that u told me before, but it still doesn't work, i don't know whow to fix it :(

Maybe this help you:

-f# ps -ef |grep send
root 19185 18217 0 16:35:31 ? 0:00 sendmail: startup with relay.uni2.es
root 19184 18217 0 16:35:28 ? 0:00 sendmail: startup with [83.247.128.131]
root 19181 18217 0 16:35:25 ? 0:00 sendmail: startup with hone.dundeecoll.ac.uk
root 19182 18217 0 16:35:25 ? 0:00 sendmail: startup with hone.dundeecoll.ac.uk
root 18766 18217 0 16:32:16 ? 0:00 sendmail: server vt10.vtarget.com [216.64.222.10] (may be forge
root 19175 18217 0 16:35:17 ? 0:00 sendmail: startup with al-pi.cattel.com
root 19177 18217 0 16:35:22 ? 0:00 sendmail: startup with correo3.acens.net
root 19183 18217 0 16:35:27 ? 0:00 sendmail: startup with al-pi.cattel.com
root 18217 1 0 16:29:31 ? 0:01 sendmail: accepting connections on port 25
root 19180 18217 0 16:35:24 ? 0:00 sendmail: startup with web51905.mail.yahoo.com
-f#


Thanks in advance.. (agaian)
Sid Shorter_2
Advisor

Re: Sendmail Relay Denied

Sounds like the problem may be on the Exchange server. They most likely have a defined list of authorized relays. Have them put in the new IP address of your new HP server