Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

sqldatasource dal, wwwxxxenden, convert raid5 to raid 10 mdadm, apache force chunked, nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas, linux raid resync after reboot

Links

XODOX
Impressum

#1: sendmail local mail not working - error 69

Posted on 2006-01-06 16:28:12 by Paul

I'm getting a really annoying msg from the /usr/sbin/mail program when
running from cmd line.
This only started happening since upgrading to new kernal and new
sendmail.

Am running Debian latest kernal with sendmail 8.13.x

When I do this:

# mail paul
Subject: test
test
..

I get this return msg:

Can't send mail: sendmail process failed with error code 69

This also happens when I attempt to send to an outside address from the
cmd line.

Sending mail from another machine through sendmail works fine - so this
has to be a problem with local mail somehow.

I know that error code 69 means - resource unavailable (but which one)

procmail is in /usr/bin

tcpwrappers is on and hosts.allow has:

ALL: LOCAL: ALLOW
sendmail: ALL : ALLOW
localhost.localdomain:all:allow
127.0.0.1: ALL : ALLOW
(some of the above were added just to see if things would start
working)

This shows up in the mail log:

liberty:/var/log# tail -f mail.log|grep paul
Jan 6 14:38:27 liberty sendmail[20402]: k06EcR0Y020402:
to=paul@francomm.com, c
tladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=30037, rel
ay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable

Here's the necessary access.db records:
dot 6 and dot 201 are the localhost (multiple IPs for machine)

..francomm.com OK

Connect:localhost.localdomain OK
Connect:localhost OK
Connect:127.0.0.1 OK
Connect:208.9.129.6 OK
Connect:208.9.129.201 OK

Mail is MXed to dot 201

Here's the .mc file:

define(`_USE_ETC_MAIL_')dnl
define(`confCONNECTION_RATE_THROTTLE',`15')dnl
define(`confQUEUE_LA',`10')dnl
define(`confDELAY_LA',`7')dnl
define(`confREFUSE_LA',`9')dnl
define(`confLOG_LEVEL',`14')dnl
define(`confMILTER_LOG_LEVEL',`14')dnl
define(`confMILTER_MACROS_CONNECT',confMILTER_MACROS_CONNECT `,{client_resolve}'$
define(`confMILTER_MACROS_HELO',confMILTER_MACROS_HELO`,{ver ify}')dnl
define(`confMAX_RCPTS_PER_MESSAGE', `30')dnl
define(`confBAD_RCPT_THROTTLE',`3')dnl
define(`confPRIVACY_FLAGS',`needmailhelo,needexpnhelo,needvr fyhelo,dnl
restrictqrun,restrictexpand,dnl
nobodyreturn,authwarnings')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.13.4-3 2005-06-03 16:49:22 cowboy Exp
$')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
FEATURE(`access_db',`hash -T<TMPF> /etc/mail/access_map')dnl
FEATURE(`greet_pause', `1000')dnl 1 seconds
FEATURE(`delay_checks', `friend', `n')dnl
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(virtusertable)dnl
FEATURE(`smrsh')dnl
FEATURE(`local_procmail',`/usr/bin/procmail')dnl

dnl - These work fine - the line is long so they didn't get completely
copied.
INPUT_MAIL_FILTER(`milter-error',
`S=unix:/var/run/milter/milter-error.socket,T$
INPUT_MAIL_FILTER(`milter-sender',`S=unix:/var/run/milter/mi lter-sender.socket,$
INPUT_MAIL_FILTER(`milter-abook',
`S=unix:/var/run/milter/milter-abook.socket,T$
INPUT_MAIL_FILTER(`milter-report',`S=unix:/var/run/milter/mi lter-report.socket,$
MAILER(local)dnl
MAILER(smtp)dnl

Is this a permissions issue?

It's getting curiouser and curiouser!

TIA - Paul.

Report this message

#2: Re: sendmail local mail not working - error 69

Posted on 2006-01-08 22:54:00 by per

In article <1136561292.249860.309470@g43g2000cwa.googlegroups.com> "Paul
B." <paul@francomm.com> writes:
>
>When I do this:
>
># mail paul
>Subject: test
>test
>.
>
>I get this return msg:
>
>Can't send mail: sendmail process failed with error code 69
[snip]
>This shows up in the mail log:
>
>liberty:/var/log# tail -f mail.log|grep paul
>Jan 6 14:38:27 liberty sendmail[20402]: k06EcR0Y020402:
>to=paul@francomm.com, c
>tladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
>pri=30037, rel
>ay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable

This is your local MTA at 127.0.0.1 rejecting the message from the MSP
that was invoked by 'mail' (probably /bin/mail rather than
/usr/sbin/mail btw). Normally the bounce message would have more info,
but delivery of that may fail too in this case. Try using 'mail -v paul'
instead, and look at the SMTP dialogue.

--Per Hedeland
per@hedeland.org

Report this message

#3: Re: sendmail local mail not working - error 69

Posted on 2006-01-11 13:51:25 by Paul

This does shed some light on the problem. The following dialog shows
why the msgs are being blocked, but now have to search on how to fix
it.

paul... Connecting to [127.0.0.1] port 587 via relay...
554 liberty.francomm.com ESMTP not accepting messages
>>> QUIT
221 2.0.0 liberty.francomm.com closing connection
root... Connecting to [127.0.0.1] port 587 via relay...
554 liberty.francomm.com ESMTP not accepting messages
>>> QUIT
221 2.0.0 liberty.francomm.com closing connection
postmaster... Connecting to [127.0.0.1] port 587 via relay...
554 liberty.francomm.com ESMTP not accepting messages
>>> QUIT
221 2.0.0 liberty.francomm.com closing connection
Closing connection to [127.0.0.1]
Can't send mail: sendmail process failed with error code 69

Paul.

Report this message

#4: Re: sendmail local mail not working - error 69

Posted on 2006-01-12 01:34:38 by per

In article <1136983885.617949.16250@z14g2000cwz.googlegroups.com> "Paul
B." <paul@francomm.com> writes:
>This does shed some light on the problem. The following dialog shows
>why the msgs are being blocked, but now have to search on how to fix
>it.
>
>paul... Connecting to [127.0.0.1] port 587 via relay...
>554 liberty.francomm.com ESMTP not accepting messages

Looking at the source, this can only be caused by one of

a) greet_pause firing
b) milter init failing
c) milter connection rejection

- either way the cause should be logged by the MTA daemon, probably just
before the snippet you showed in the original post (assuming your MTA
daemon is logging at all - if your libc has a broken syslog() function,
you need to restart the MTA daemon after having restarted syslogd).

Anyway, a) is not likely even if you do have it in your config, since it
is sendmail that is connecting. My guess is on b).

--Per Hedeland
per@hedeland.org

Report this message