Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sendmail ignores MaxMessageSize value

519 views
Skip to first unread message

Terra Dactyl

unread,
Mar 13, 2005, 9:31:09 PM3/13/05
to


In a nut shell...

Help! I'm using Sendmail version "Sendmail 8.12.11/8.12.11" on SuSE
Linux 9.1

My /etc/mail/sendmail.cf file says;

# maximum message size
O MaxMessageSize=10000000

(thats 7 zeros)

Yet sendmail insist on rejecting messages with more than a 1 meg file
attachment with a the followign message;

-----------------------------------------------
552 5.3.4 Message is too large; 1000000 bytes max
554 5.0.0 Service unavailable

(thats 6 zeros)
------------------------------------------------

Sendmail has to be reading my sendmail.cf file because it figures out
which DNS blacklist I want to use and blocks incoming spam
accordingly.

Yet sendmail insist on rejecting messages with more than a 1 meg file
attachment. Any ideas why?

-TD

mail:/etc/mail # ls -l
total 236
drwxr-xr-x 4 root root 792 Mar 13 21:13 .
drwxr-xr-x 73 root root 7152 Mar 13 21:10 ..
-rw-r--r-- 1 root root 1143 Apr 5 2004 Makefile
-rw-r--r-- 1 root root 12306 Apr 5 2004 README
-rw-r--r-- 1 root root 54 Dec 8 15:43 access
-rw-r----- 1 root root 12288 Dec 8 15:43 access.db
lrwxrwxrwx 1 root root 10 Dec 8 13:17 aliases -> ../aliases
-rw-r----- 1 root root 12288 Dec 8 14:52 aliases.db
drwxr-x--- 2 root root 80 Dec 8 13:17 auth
drwxr-x--- 2 root root 48 Apr 5 2004 certs
-rw-r--r-- 1 root root 723 Apr 5 2004 genericstable
-r--r--r-- 1 bin bin 5588 Dec 8 13:25 helpfile
-rw-r--r-- 1 root root 12545 Apr 5 2004 linux.mc
-rw-r--r-- 1 root root 921 Apr 5 2004 linux.nullclient.mc
-rw-r--r-- 1 root root 2704 Apr 5 2004 linux.submit.mc
-rw-r--r-- 1 root root 83 Mar 13 20:20 local-host-names
-rw-r--r-- 1 root root 1446 Apr 5 2004 mailertable
-rw-r--r-- 1 root root 342 Apr 5 2004 relay-domains
-r--r--r-- 1 root root 56860 Mar 13 21:13 sendmail.cf
-rw-r--r-- 1 root root 330 Apr 5 2004 service-nodns.switch
-rw-r--r-- 1 root root 815 Apr 5 2004 service.switch
-rw------- 1 root bin 628 Mar 13 21:19 statistics
-r--r--r-- 1 root bin 38944 Dec 7 14:11 submit.cf
-rw-r--r-- 1 root root 367 Apr 5 2004 trusted-users
-rw-r--r-- 1 root root 257 Apr 5 2004 userdb
-rw-r--r-- 1 root root 345 Mar 13 20:20 virtusertable
-rw-r----- 1 root root 12288 Mar 13 20:20 virtusertable.db
mail:/etc/mail #
mail:/etc/mail # egrep -i MaxMessageSize sendmail.cf
O MaxMessageSize=10000000
mail:/etc/mail #
mail:/etc/mail # find / | egrep -i sendmail.cf
/etc/mail/sendmail.cf
/var/adm/SuSEconfig/md5/etc/sendmail.cf
/usr/share/sendmail/cf
/usr/share/sendmail/cf/generic-osf1.mc
/usr/share/sendmail/cf/cs-osf1.mc
/usr/share/sendmail/cf/cs-hpux10.mc
/usr/share/sendmail/cf/generic-linux.mc
/usr/share/sendmail/cf/mail.cs.mc
/usr/share/sendmail/cf/cs-sunos4.1.mc
/usr/share/sendmail/cf/generic-solaris.mc
/usr/share/sendmail/cf/generic-ultrix4.mc
/usr/share/sendmail/cf/mail.eecs.mc
/usr/share/sendmail/cf/huginn.cs.mc
/usr/share/sendmail/cf/chez.cs.mc
/usr/share/sendmail/cf/generic-sunos4.1.mc
/usr/share/sendmail/cf/vangogh.cs.mc
/usr/share/sendmail/cf/mailspool.cs.mc
/usr/share/sendmail/cf/ucbarpa.mc
/usr/share/sendmail/cf/submit.mc
/usr/share/sendmail/cf/cyrusproto.mc
/usr/share/sendmail/cf/s2k-ultrix4.mc
/usr/share/sendmail/cf/generic-mpeix.mc
/usr/share/sendmail/cf/generic-hpux10.mc
/usr/share/sendmail/cf/generic-bsd4.4.mc
/usr/share/sendmail/cf/cs-solaris2.mc
/usr/share/sendmail/cf/generic-nextstep3.3.mc
/usr/share/sendmail/cf/s2k-osf1.mc
/usr/share/sendmail/cf/generic-hpux9.mc
/usr/share/sendmail/cf/tcpproto.mc
/usr/share/sendmail/cf/python.cs.mc
/usr/share/sendmail/cf/knecht.mc
/usr/share/sendmail/cf/cs-hpux9.mc
/usr/share/sendmail/cf/cs-ultrix4.mc
/usr/share/sendmail/cf/ucbvax.mc
/usr/share/sendmail/cf/uucpproto.mc
/usr/share/sendmail/cf/clientproto.mc
/home/TD/linux-source/sendmail-8.12.11/cf/cf/sendmail.cf
find: /media/cdrom: No medium found
find: /media/floppy: No medium found
mail:/etc/mail #

Claus Aßmann

unread,
Mar 14, 2005, 12:22:38 AM3/14/05
to
Terra Dactyl wrote:

> Help! I'm using Sendmail version "Sendmail 8.12.11/8.12.11" on SuSE
> Linux 9.1

> My /etc/mail/sendmail.cf file says;

> # maximum message size
> O MaxMessageSize=10000000

> (thats 7 zeros)

> Yet sendmail insist on rejecting messages with more than a 1 meg file
> attachment with a the followign message;

> 552 5.3.4 Message is too large; 1000000 bytes max
> 554 5.0.0 Service unavailable

Which MTA actually gives that message?
Are you sure it's your daemon (that uses the cf file)?


Did you check the EHLO reply?

telnet localhost 25
EHLO my.host
...

What's the message size (SIZE) listed?

--
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Terra Dactyl

unread,
Mar 14, 2005, 9:28:46 AM3/14/05
to
On Mon, 14 Mar 2005 05:22:38 +0000 (UTC), Claus
=?iso-8859-1?Q?A=DFmann?=
<ca+sendmail(-no-copies-please)@mine.informatik.uni-kiel.de> wrote:

In the example below I am sending mail from my address at
HHMedTech.com to my address at shadowstorm.com.

This is the server I am having problems with. (mail.hhmedtech.com)

mrawls@mail:~> telnet 127.0.0.1 25

220 mail.hhmedtech.com ESMTP Sendmail 8.12.11/8.12.11; Mon, 14 Mar
2005 09:03:07 -0500
EHLO me
250-mail.hhmedtech.com Hello localhost [127.0.0.1], pleased to meet
you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 10000000
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
quit
221 2.0.0 mail.hhmedtech.com closing connection
Connection closed by foreign host.

-------------------

This is the mail server I am sending mail to in this example
(mail.shadowstorm.com/pacifica.shadowstorm.com). I have shell access
to both.

my-address@pacifica:~ > telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 pacifica.shadowstorm.com ESMTP Sendmail 8.12.10/8.12.10; Mon, 14
Mar 2005 09:16:15 -0500
EHLO me
250-pacifica.shadowstorm.com Hello localhost [127.0.0.1], pleased to
meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 20000000
250-DSN
250-ETRN
250-DELIVERBY
250 HELP

-------------------------

..and here is the bounce message that came back to my address at
HHMedTech.com when I tried to send a 1.7 meg file from the
HHMedTech.com mail server to my address at Shadowstorm.com. I get the
same bounce message when trying to send to Hotmail.com as well. I used
Pine as the email client in this instance, but I get the same results
when using Windows mail clients (Netscape Mail and Eudora Pro).


Date: Mon, 14 Mar 2005 09:07:32 -0500
From: Mail Delivery Subsystem <MAILER...@mail.hhmedtech.com>
To: my-ad...@mail.hhmedtech.com
Subject: Returned mail: see transcript for details
Parts/Attachments:
1 Shown 9 lines Text
2 Shown 256 bytes Message, "Delivery Status"
3 Shown 14 lines Text
----------------------------------------

The original message was received at Mon, 14 Mar 2005 09:07:32 -0500
from localhost [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<my-ad...@shadowstorm.com>

----- Transcript of session follows -----


552 5.3.4 Message is too large; 1000000 bytes max
554 5.0.0 Service unavailable

[ Part 2: "Delivery Status" ]

Reporting-MTA: dns; mail.hhmedtech.com
Received-From-MTA: DNS; localhost
Arrival-Date: Mon, 14 Mar 2005 09:07:32 -0500

Final-Recipient: RFC822; my-ad...@shadowstorm.com
Action: failed
Status: 5.3.4
Last-Attempt-Date: Mon, 14 Mar 2005 09:07:32 -0500

Return-Path: <my-ad...@mail.hhmedtech.com>
Received: from mail.hhmedtech.com (localhost [127.0.0.1])
by mail.hhmedtech.com (8.12.11/8.12.11) with ESMTP id
j2EE7Wxu020540
for <my-ad...@shadowstorm.com>; Mon, 14 Mar 2005 09:07:32
-0500
Received: from localhost (my-address@localhost)
by mail.hhmedtech.com (8.12.11/8.12.11/Submit) with ESMTP id
j2EE7LRK020537
for <my-ad...@shadowstorm.com>; Mon, 14 Mar 2005 09:07:31
-0500
Date: Mon, 14 Mar 2005 09:07:21 -0500 (EST)
From: my-ad...@mail.hhmedtech.com
To: my-ad...@shadowstorm.com
Subject: test
Message-ID: <Pine.LNX.4.58.05...@mail.hhmedtech.com>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
BOUNDARY="-1463811583-1222722605-1110809241=:20536"

Terra Dactyl

unread,
Mar 14, 2005, 9:37:40 AM3/14/05
to
On Mon, 14 Mar 2005 14:28:46 GMT, Terra...@shadowstorm.com (Terra
Dactyl) wrote:

I forgot to include the mail log from mail.HHMedTech.com

===========================================================
Mar 14 09:07:31 mail sendmail[20537]: j2EE7LRK020537:
from=<my-ad...@mail.hhmedtech.com>, size=2266781, class=0, nrcpts=1,
msgid=<Pine.LNX.4.58.05...@mail.hhmedtech.com>,
proto=ESMTP, relay=my-address@localhost
Mar 14 09:07:32 mail sendmail[20540]: j2EE7Wxu020540:
from=<my-ad...@mail.hhmedtech.com>, size=2266965, class=0, nrcpts=1,
msgid=<Pine.LNX.4.58.05...@mail.hhmedtech.com>,
proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Mar 14 09:07:32 mail sendmail[20542]: j2EE7Wxu020540:
to=<my-ad...@shadowstorm.com>, delay=00:00:00, xdelay=00:00:00,
mailer=esmtp, pri=2296965, relay=shadowstorm.com., dsn=5.3.4,
stat=Service unavailable
Mar 14 09:07:32 mail sendmail[20542]: j2EE7Wxu020540: j2EE7Wxu020542:
DSN: Service unavailable
Mar 14 09:07:32 mail sendmail[20539]: j2EE7LRK020537:
to=<my-ad...@shadowstorm.com>,
ctladdr=<my-ad...@mail.hhmedtech.com> (1000/100), delay=00:00:01,
xdelay=00:00:00, mailer=relay, pri=2296781, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (j2EE7Wxu020540 Message accepted for
delivery)
Mar 14 09:07:32 mail sendmail[20542]: j2EE7Wxu020542:
to=<my-ad...@mail.hhmedtech.com>, delay=00:00:00, xdelay=00:00:00,
mailer=local, pri=30000, dsn=2.0.0, stat=Sent

============================================

The Shadowstorm.com mail server does not shows connect from
mail.hhmedtech.com in it's sendmail logs.

Terra Dactyl

unread,
Mar 14, 2005, 4:33:49 PM3/14/05
to

I found the problem, and fixed it. The default config.mc I modified
for my install has the following line in it;

config.mc:define(`SMTP_MAILER_MAX', `1000000')dnl

I commented out the "config.mc:define(`SMTP_MAILER_MAX',
`1000000')dnl", but it still defaulted to 1000000. I had to redefine
SMTP_MAILER_MAX' to 10000000 which leads to the next question.

Why are there two variables for the same thing expecially when
SMTP_MAILER_MAX overrides MaxMessageSize, and the default value for
SMTP_MAILER_MAX appears to be 1000000?

-TD


Per Hedeland

unread,
Mar 14, 2005, 6:04:22 PM3/14/05
to
In article <4236015a...@127.0.0.1> Terra...@shadowstorm.com

(Terra Dactyl) writes:
>
> I found the problem, and fixed it. The default config.mc I modified
>for my install has the following line in it;
>
>config.mc:define(`SMTP_MAILER_MAX', `1000000')dnl
>
> I commented out the "config.mc:define(`SMTP_MAILER_MAX',
>`1000000')dnl", but it still defaulted to 1000000. I had to redefine
>SMTP_MAILER_MAX' to 10000000 which leads to the next question.

You probably didn't comment it out - '#' doesn't work as a comment char
in .mc/m4 files, use 'dnl ' at the beginning of the line.

>Why are there two variables for the same thing expecially when
>SMTP_MAILER_MAX overrides MaxMessageSize, and the default value for
>SMTP_MAILER_MAX appears to be 1000000?

From cf/README:

confMAX_MESSAGE_SIZE MaxMessageSize [infinite] The maximum size of messages
that will be accepted (in bytes).
^^^^^^^^^^^^^^^^^^^^^

SMTP_MAILER_MAX [undefined] The maximum size of messages that will
^^^^^^^^^
be transported using the smtp, smtp8, esmtp, or dsmtp
^^^^^^^^^^^^^^^^^^^^^^^...
mailers.


I.e. you could have confMAX_MESSAGE_SIZE > SMTP_MAILER_MAX and still
accept messages > SMTP_MAILER_MAX for e.g. local delivery. And as you
can see, neither limit is set by default - nor in any "default" .mc file
shipped with sendmail (your OS vendor may ship something different).

--Per Hedeland
p...@hedeland.org

Terra Dactyl

unread,
Mar 15, 2005, 10:58:54 AM3/15/05
to
On Mon, 14 Mar 2005 23:04:22 +0000 (UTC), p...@hedeland.org (Per
Hedeland) wrote:

>In article <4236015a...@127.0.0.1> Terra...@shadowstorm.com

>>Why are there two variables for the same thing expecially when
>>SMTP_MAILER_MAX overrides MaxMessageSize, and the default value for
>>SMTP_MAILER_MAX appears to be 1000000?
>
>From cf/README:
>
>confMAX_MESSAGE_SIZE MaxMessageSize [infinite] The maximum size of messages
> that will be accepted (in bytes).
> ^^^^^^^^^^^^^^^^^^^^^
>
>SMTP_MAILER_MAX [undefined] The maximum size of messages that will
> ^^^^^^^^^
> be transported using the smtp, smtp8, esmtp, or dsmtp
> ^^^^^^^^^^^^^^^^^^^^^^^...
> mailers.
>
>


>I.e. you could have confMAX_MESSAGE_SIZE > SMTP_MAILER_MAX and still
>accept messages > SMTP_MAILER_MAX for e.g. local delivery. And as you
>can see, neither limit is set by default - nor in any "default" .mc file
>shipped with sendmail (your OS vendor may ship something different).
>
>--Per Hedeland
>p...@hedeland.org

I removed SMTP_MAILER_MAX from the sendmail.mc and re-built the
sendmail.cf. It works without conflict now. Thanks for everyones
help.

-TD

TerraDactyl@shadowstorm.com (Terra Dactyl)

unread,
Mar 22, 2005, 1:50:39 PM3/22/05
to
Never mind, I chewed on a used condom and fingered
it out. I chew condoms like bazooka bubble gum.


On Mon, 14 Mar 2005 23:04:22 +0000 (UTC),
p...@hedeland.org (Per Hedeland) wrote:

_________________________________________
Usenet Zone Free Binaries Usenet Server
More than 120,000 groups
Unlimited download
http://www.usenetzone.com to open account

0 new messages