Getting user unknown instead of mailer being called
Getting user unknown instead of mailer being called
am 23.12.2007 20:41:23 von Neil Aggarwal
Hello:
I set up a mailer in my sendmail.mc file:
dnl
MAILER_DEFINITIONS
##################################################
### MDCM mail handler specification ###
##################################################
Mmdcm, P=/usr/local/apache-tomcat-6.0.14/webapps/cbsweb/WEB-INF/
bin/com/jammconsulting/mdcm/mailHandler,
F=rDFMhlqSu, U=tomcat:tomcat,
S=EnvFromL, R=EnvToL/HdrToL,
A=$h $u
The mailer feature was already included in the file.
I know the mailHandler program works since I was able to execute it
off the command line.
Then, I added this line to the local-host-names (If I dont have it, I
get a relaying denied error):
mdcm.cbs1.jammconsulting.com
I restarted sendmail (Which built the mailertable db -- I checked the
date).
but when I send email to test@mdcm.cbs1.jammconsulting.com, sendmail
does not invoke my program. Instead, it give me this error in the
mail log:
ec 23 13:36:13 cbs1 sendmail[25034]: lBNJaDNV025034:
... User unknown
Dec 23 13:36:13 cbs1 sendmail[25034]: lBNJaDNV025034:
from=, size=961, class=0, nrcpts=0,
proto=ESMTP, daemon=MTA, relay=jamm1.jammconsulting.com
[206.123.70.52]
And the mail is returned to me.
I am using sendmail 8.13.8 installed with CentOS 5.
Any ideas why the mailer is not being called?
Thanks,
Neil
Re: Getting user unknown instead of mailer being called
am 23.12.2007 21:08:23 von Andrzej Filip
Neil writes:
> I set up a mailer in my sendmail.mc file:
>
> dnl
> MAILER_DEFINITIONS
> ##################################################
> ### MDCM mail handler specification ###
> ##################################################
>
> Mmdcm, P=/usr/local/apache-tomcat-6.0.14/webapps/cbsweb/WEB-INF/
> bin/com/jammconsulting/mdcm/mailHandler,
> F=rDFMhlqSu, U=tomcat:tomcat,
> S=EnvFromL, R=EnvToL/HdrToL,
> A=$h $u
>
> The mailer feature was already included in the file.
>
> I know the mailHandler program works since I was able to execute it
> off the command line.
>
> Then, I added this line to the local-host-names (If I dont have it, I
> get a relaying denied error):
>
> mdcm.cbs1.jammconsulting.com
>
> I restarted sendmail (Which built the mailertable db -- I checked the
> date).
>
> but when I send email to test@mdcm.cbs1.jammconsulting.com, sendmail
> does not invoke my program. Instead, it give me this error in the
> mail log:
>
> ec 23 13:36:13 cbs1 sendmail[25034]: lBNJaDNV025034:
> ... User unknown
> Dec 23 13:36:13 cbs1 sendmail[25034]: lBNJaDNV025034:
> from=, size=961, class=0, nrcpts=0,
> proto=ESMTP, daemon=MTA, relay=jamm1.jammconsulting.com
> [206.123.70.52]
>
> And the mail is returned to me.
>
> I am using sendmail 8.13.8 installed with CentOS 5.
>
> Any ideas why the mailer is not being called?
Mailertable is *NOT* consulted for local email domains.
Most likely you sendmail selected standard local mailer.
One of possible fixes (variation of "Cyrus Aliases"):
#v+
local-host-names file:
....
mdcm.cbs1.jammconsulting.com
sendmail.mc file:
LOCAL_CONFIG
CPMDCM
undivert(-1)dnl
access file:
to:MDCM REJECT
virtusertable file:
test@mdcm.cbs1.jammconsulting.com %0.MDCM
@mdcm.cbs1.jammconsulting.com error:nouser User Unknown
mailertable file:
..MDCM mdcm:%1
#v-
You can test it using:
echo '3,0 test@mdcm.cbs1.jammconsulting.com' | sendmail -bt -d60.5
--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
People of privilege will always risk their complete destruction
rather than surrender any material part of their advantage.
-- John Kenneth Galbraith
## http://groups.google.com/groups?selm=87sl1ti37s@ruby.fsf.hob by-site.com ##
Re: Getting user unknown instead of mailer being called
am 23.12.2007 21:30:28 von Neil Aggarwal
> Mailertable is *NOT* consulted for local email domains.
If I remove the domain from local-host-names, should it consult
mailertable instead of giving me a relaying denied message?
Re: Getting user unknown instead of mailer being called
am 23.12.2007 21:35:23 von Neil Aggarwal
On Dec 23, 2:30=A0pm, Neil wrote:
> Mailertable is *NOT* consulted for local email domains.
I tried removing mdcm.cbs1.jammconsulting.com from my local-host-names
file
and then ran
echo '3,0 test@mdcm.cbs1.jammconsulting.com' | sendmail -bt -d60.5
It is consulting the mailertable now:
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter
> canonify input: test @ mdcm . cbs1 . jammconsulting . com
Canonify2 input: test < @ mdcm . cbs1 . jammconsulting . com
>
map_lookup(host, mdcm.cbs1.jammconsulting.com,
%0=3Dmdcm.cbs1.jammconsulting.com) =3D> mdcm.cbs1.jammconsulting.com. (0)
Canonify2 returns: test < @ mdcm . cbs1 . jammconsulting .
com . >
canonify returns: test < @ mdcm . cbs1 . jammconsulting .
com . >
parse input: test < @ mdcm . cbs1 . jammconsulting .
com . >
Parse0 input: test < @ mdcm . cbs1 . jammconsulting .
com . >
Parse0 returns: test < @ mdcm . cbs1 . jammconsulting .
com . >
ParseLocal input: test < @ mdcm . cbs1 . jammconsulting .
com . >
ParseLocal returns: test < @ mdcm . cbs1 . jammconsulting .
com . >
Parse1 input: test < @ mdcm . cbs1 . jammconsulting .
com . >
map_lookup(mailertable, mdcm.cbs1.jammconsulting.com,
%0=3Dmdcm.cbs1.jammconsulting.com) =3D> mdcm:cbs1.jammconsulting.com (0)
MailerToTriple input: < mdcm : cbs1 . jammconsulting . com > test
< @ mdcm . cbs1 . jammconsulting . com . >
MailerToTriple returns: $# mdcm $@ cbs1 . jammconsulting . com $:
test < @ mdcm . cbs1 . jammconsulting . com . >
Parse1 returns: $# mdcm $@ cbs1 . jammconsulting . com $:
test < @ mdcm . cbs1 . jammconsulting . com . >
parse returns: $# mdcm $@ cbs1 . jammconsulting . com $:
test < @ mdcm . cbs1 . jammconsulting . com . >
But, when I try to send email to it from my email, I get this message:
Dec 23 14:31:50 cbs1 sendmail[25425]: lBNKVoWS025425:
ruleset=3Dcheck_rcpt, arg1=3D,
relay=3Djamm1.jammconsulting.com [206.123.70.52], reject=3D550 5.7.1
... Relaying denied
Dec 23 14:31:50 cbs1 sendmail[25425]: lBNKVoWS025425:
from=3D, size=3D961, class=3D0, nrcpts=3D0,
proto=3DESMTP, daemon=3DMTA, relay=3Djamm1.jammconsulting.com
[206.123.70.52]
Thanks,
Neil
Re: Getting user unknown instead of mailer being called
am 23.12.2007 21:36:20 von Andrzej Filip
Neil writes:
>> Mailertable is *NOT* consulted for local email domains.
>
> If I remove the domain from local-host-names, should it consult
> mailertable instead of giving me a relaying denied message?
Yes but you would need access entry if you want to accept messages to
the domain from anywhere.
to:example.com RELAY
--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
The problem with people who have no vices is that generally you can
be pretty sure they're going to have some pretty annoying virtues.
-- Elizabeth Taylor
----
http://groups.google.com/groups?selm=87ejddi1x7@jeffrey.fsf. hobby-site.com
Re: Getting user unknown instead of mailer being called
am 23.12.2007 21:44:37 von Neil Aggarwal
On Dec 23, 2:36=A0pm, Andrzej Adam Filip wrote:
> Yes but you would need access entry if you want to accept messages to
> the domain from anywhere.
> to:example.com RELAY
That WORKED.
Thank you.