Re: [Mimedefang] mimedefang fails to start upon reboot

2009-11-10 Thread jef moskot

On Sat, 7 Nov 2009, jef moskot wrote:

The problem leaves this evidence in /var/log/maillog

Nov  7 23:45:30 phantom mimedefang-multiplexor[936]: Starting slave 1 (pid  
1238) (1 running): Bringing slaves up to minSlaves (2)
Nov  7 23:45:30 phantom mimedefang-multiplexor[936]: Slave 1 stderr: Out of 
memory during request for 4088 bytes, total sbrk() is 9553920 bytes!
Nov  7 23:45:30 phantom mimedefang-multiplexor[936]: Slave 1 stderr: Out of 
memory during request for 48 bytes, total sbrk() is 9553920 bytes!
Nov  7 23:45:30 phantom mimedefang-multiplexor[936]: Reap: slave 1 (pid 1238) 
exited due to signal 11 (SLAVE DIED UNEXPECTEDLY)
Nov  7 23:45:30 phantom mimedefang-multiplexor[936]: Slave 1 resource usage: 
req=0, scans=0, user=0.092, sys=0.056, nswap=0, majflt=0, minflt=3101, 
maxrss=13432, bi=5, bo=18


OK, this is might be blindingly obvious to you all (or a curiosity of 
FreeBSD, I dunno), but I've just discovered the world of rcorder with its 
mysterious PROVIDE/REQUIRE/BEFORE/KEYWORD magic.


The default setup for mimedefang.sh in /usr/local/etc/rc.d is

# PROVIDE: mimedefang
# REQUIRE: LOGIN
# BEFORE: mail
# KEYWORD: shutdown

PROVIDE and KEYWORD seem to be no-brainers, but what would the error above 
indicate mimedefang wants that it doesn't yet have?


Maybe not all the CPUs are fired up yet?  Or it doesn't have swap space?

Is mimedefang unhappy if the sendmail daemon is not yet running when it 
tries to start?


To recap, upon reboot, mimedefang continually pukes out error messages 
like the ones listed above until the process is manually stopped and 
restarted.  After that, it works just fine.


Sorry if I'm dipping into the realm of port creation, but the maintainer 
for the FreeBSD port takes ages to respond, and if this is potentially 
something simple, I thought I'd ask you guys first (and then pass on 
whatever we learn to the maintainer).


Thanks.

Jeffrey Moskot
System Administrator
j...@math.miami.edu
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] mimedefang fails to start upon reboot

2009-11-10 Thread Paul Murphy
Jef,

 Nov  7 23:45:30 phantom mimedefang-multiplexor[936]: Starting slave 1 (pid  
 1238) (1 running): Bringing slaves up to minSlaves (2)
 Nov  7 23:45:30 phantom mimedefang-multiplexor[936]: Slave 1 stderr: Out of 
 memory during request for 4088 bytes, total sbrk() is 9553920 bytes!
 Nov  7 23:45:30 phantom mimedefang-multiplexor[936]: Slave 1 stderr: Out of 
 memory during request for 48 bytes, total sbrk() is 9553920 bytes!
 Nov  7 23:45:30 phantom mimedefang-multiplexor[936]: Reap: slave 1 (pid 1238) 
 exited due to signal 11 (SLAVE DIED UNEXPECTEDLY)

To recap, upon reboot, mimedefang continually pukes out error messages 
like the ones listed above until the process is manually stopped and 
restarted.  After that, it works just fine.

So the system runs OK under your environment, but not under the startup 
environment.  From the error messages, I'd suspect that you have somehow 
limited the memory use of processes on the system by default, and then in your 
interactive environment you specifically remove any limits, so when you start 
it manually all is OK.  To test this, include some code in the system startup 
script to dump the current shell limits to a temp file, and see what happens 
when you next restart the system.

MIMEDefang processes are fairly memory hungry because they load the full 
SpamAssassin rule set, so if you have limited the memory use they may hit that 
limit either as they start, or once messages start to come in.

On the start order, MIMEDefang does indeed start before Sendmail, as it creates 
a socket which Sendmail expects to find on startup.

Best Wishes,

Paul.

---
Paul Murphy
Head of I.T.
Argenta Discovery 2009 Ltd
Tel. 01279 645 554
Fax. 01279 645 646



___
Argenta Discovery 2009 Ltd, 8-9 Spire Green Centre, Harlow, Essex, CM19 5TR
Registered in England No. 06920289
___ 

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] mimedefang+postfix on debian lenny

2009-11-10 Thread ADNET Ghislain

hi,

 I have a silly question. As i try to install mimedefang and postfix on 
debian it seems debian want to install sendmail and remove postfix as 
soon as i say the 'mimedefang' word. Is there any way to make this work 
or are we doomed to sendmail on debian ?




The following NEW packages will be installed:
 libconvert-binhex-perl{a} libdrm2{a} libfontenc1{a} libgl1-mesa-glx{a} 
libice6{a} libio-stringy-perl{a} libmilter1.0.1{a} libmime-tools-perl{a} 
libperl5.10{a} libsm6{a} libunix-syslog-perl{a} libxaw7{a} libxdamage1{a}
 libxfixes3{a} libxft2{a} libxi6{a} libxinerama1{a} libxmu6{a} 
libxrender1{a} libxt6{a} libxtst6{a} libxv1{a} libxxf86dga1{a} 
libxxf86vm1{a} m4{a} mimedefang sendmail{a} sendmail-base{a} 
sendmail-bin{a} sendmail-cf{a}

 sensible-mda{a} tcl8.3{a} tk8.3{a} x11-utils{a} xbitmaps{a} xterm{a}

The following packages will be REMOVED:
 postfix{a}


--
Cordialement,
Ghislain


smime.p7s
Description: S/MIME Cryptographic Signature
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] mimedefang+postfix on debian lenny

2009-11-10 Thread ADNET Ghislain

ok i think i got it working by:

- installing mimedefang
- stopping sendmail
- purging sendmail
- installing postfix again

strange, resintalling postfix does not remove sendmail completly.. 
anyway it seems to work that way


--
Cordialement,
Ghislain




smime.p7s
Description: S/MIME Cryptographic Signature
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] new install

2009-11-10 Thread dhottinger
Ive installed mimedefang sucessfully.  Its installed on a redhat dist.  
 I copied the redhat init script to /etc/init.d and tried to get it  
to start.  I get an error message that says:
Starting mimedefang-multiplexor: ERROR: You must not run  
mimedefang-multiplexor as root.

Use the -U option to set a non-root user.
   [FAILED]
Starting mimedefang: ERROR: You must not run mimedefang as root.
Use the -U option to set a non-root user.

Can someone help me with the syntax of the init file so it will start  
mimedefang as a user named defang?  Ive been reading throught the  
readme and man pages, but dont seem to be able to wrap my brain around  
the syntax.


thanks,

ddh


--
Dwayne Hottinger
Network Administrator
Harrisonburg City Public Schools

Everything should be made as simple as possible, but not simpler.
-- Albert Einstein

The hottest places in Hell are reserved for those who, in times of moral
crisis, preserved their neutrality.
-- Dante

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] mimedefang+postfix on debian lenny

2009-11-10 Thread David F. Skoll
ADNET Ghislain wrote:

 strange, resintalling postfix does not remove sendmail completly..
 anyway it seems to work that way

Please file a bug with the Debian mimedefang maintainer.  Installing
MIMEDefang should never force the removal of Postfix.

Regards,

David.
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Email in Korean language becomes clutterd and unreadable when received.

2009-11-10 Thread Andrzej Adam Filip
Aniruddha Barua zm...@yahoo.com wrote:
 One Korean buyer was visiting a Garments factory in Chittagong,
 BANGLADESH. He sent an email in Korean Language to his office in Seoul
 using our SMTP server running MIMEDefang 2.67 + sendmail + clamav. The
 email successfully
 reaches the destination mailbox but when the recipient opens the
 message, he/she finds the entire message to be cluttered and
 unreadable. When the sender sends Korean messages using the same server
 running without the MIMEDefang, the message is readable.

 Need help to configure MIMEDefang for Korean and foreign language
 support or to solve the problem otherwise.

Could you post headers of both messages?

Suspect number one:
Lack of declaration of charset used by sending client. The recipients
most likely can guess right *missing* declaration but if any smtp sender
between fills missing charset the guessing fails.

-- 
[plen: Andrew] Andrzej Adam Filip : a...@onet.eu
The only problem with seeing too much is that it makes you insane.
  -- Phaedrus
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] mimedefang+postfix on debian lenny

2009-11-10 Thread Andrzej Adam Filip
David F. Skoll d...@roaringpenguin.com wrote:
 ADNET Ghislain wrote:

 strange, resintalling postfix does not remove sendmail completly..
 anyway it seems to work that way

 Please file a bug with the Debian mimedefang maintainer.  Installing
 MIMEDefang should never force the removal of Postfix.

According to Debian site mimedefang package for stable (lenny) sendmail
at recommends list:
  http://packages.debian.org/lenny/mimedefang

-- 
[plen: Andrew] Andrzej Adam Filip : a...@onet.eu
They spell it da Vinci and pronounce it da Vinchy.  Foreigners
always spell better than they pronounce.
  -- Mark Twain
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] mimedefang+postfix on debian lenny

2009-11-10 Thread David F. Skoll
Andrzej Adam Filip wrote:

 According to Debian site mimedefang package for stable (lenny) sendmail
 at recommends list:
   http://packages.debian.org/lenny/mimedefang

I think that's a bug.  It should be suggests, because AFAIK apt-get
now pulls in recommends packages unless you tell it otherwise.

There are at least two good reasons to want to run MIMEDefang on a machine
that isn't also running Sendmail, so the Debian policy should change.

Regards,

David.


___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] mimedefang+postfix on debian lenny

2009-11-10 Thread Richard Laager
On Tue, 2009-11-10 at 13:00 -0500, David F. Skoll wrote:
 ADNET Ghislain wrote:
 
  strange, resintalling postfix does not remove sendmail completly..
  anyway it seems to work that way
 
 Please file a bug with the Debian mimedefang maintainer.  Installing
 MIMEDefang should never force the removal of Postfix.

(I'm not the package maintainer, nor affiliated with him.)

The mimedefang package [1] in Debian, regardless of which version of
Debian you're running, doesn't depend on sendmail, it only recommends
it. Thus, you should be able to have it installed without sendmail.

Is MIMEDefang useful in any way without either sendmail or postfix
installed? It seems to me that the package should say: Depends:
sendmail | postfix.

Richard

[1] http://packages.debian.org/search?keywords=mimedefang


signature.asc
Description: This is a digitally signed message part
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] mimedefang+postfix on debian lenny

2009-11-10 Thread David F. Skoll
Richard Laager wrote:

 The mimedefang package [1] in Debian, regardless of which version of
 Debian you're running, doesn't depend on sendmail, it only recommends
 it. Thus, you should be able to have it installed without sendmail.

Except, AFAIK, Debian is moving towards automatically installing
recommended packages, or at least some of its package-management
tools do this.

 Is MIMEDefang useful in any way without either sendmail or postfix
 installed?

Sure.  You could have a dedicated scanner that doesn't run an MTA.
It could communicate via TCP/IP with the machines that run the MTA.

Regards,

David.
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] mimedefang+postfix on debian lenny

2009-11-10 Thread Richard Laager
On Tue, 2009-11-10 at 13:35 -0500, David F. Skoll wrote:
 I think that's a bug.  It should be suggests, because AFAIK apt-get
 now pulls in recommends packages unless you tell it otherwise.

As an aside, I was never a fan of this change, as it seems to lead to
exactly this.

 There are at least two good reasons to want to run MIMEDefang on a machine
 that isn't also running Sendmail, so the Debian policy should change.

One of those is that you'd want to use Postfix, Recommends: sendmail |
postfix (or even Depends, from my last email) should address that one.

What's the other use?

Is it to run watch-mimedefang? If that's the case, maybe that should
just be split out into a separate package. I see there's already an open
bug suggesting that.

Richard


signature.asc
Description: This is a digitally signed message part
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] mimedefang+postfix on debian lenny

2009-11-10 Thread Leonard Mills

On Tue, 10 Nov 2009, David F. Skoll wrote:
 Richard Laager wrote:
 
  What's the other use?
 
 I mentioned it in another post: You might want a standalone scanner
 that communicates with your MTAs via TCP.  I don't really like that
 arrangement, but I'm pretty sure there are real-life MIMEDefang deployments
 that work that way.

Yes, there are :-)  Particularly when the number of MTA and mdf servers is
large but not equal and the mdf servers run older-style memory file
systems.

Len


___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] mimedefang+postfix on debian lenny

2009-11-10 Thread ADNET Ghislain

David F. Skoll a écrit :

ADNET Ghislain wrote:

  

strange, resintalling postfix does not remove sendmail completly..
anyway it seems to work that way



Please file a bug with the Debian mimedefang maintainer.  Installing
MIMEDefang should never force the removal of Postfix.
  


i will try to contact him. I run also in another issue. Postfix runs as 
the user posfix and i do not found any way to configure mimedefang to 
have a socket that let the postfix user to communicate with it.  Is 
there any parameters i missed for this ?  adding some sleep 10; chmod 
770 and chgrp postfix to the socket seems...weird to me :)



--
Cordialement,
Ghislain




smime.p7s
Description: S/MIME Cryptographic Signature
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] mimedefang+postfix on debian lenny

2009-11-10 Thread Andrzej Adam Filip
ADNET Ghislain gad...@aqueos.com wrote:
 David F. Skoll a écrit :
 ADNET Ghislain wrote:

   
 strange, resintalling postfix does not remove sendmail completly..
 anyway it seems to work that way
 

 Please file a bug with the Debian mimedefang maintainer.  Installing
 MIMEDefang should never force the removal of Postfix.
   

 i will try to contact him. I run also in another issue. Postfix runs
 as the user posfix and i do not found any way to configure mimedefang
 to have a socket that let the postfix user to communicate with it.  Is
 there any parameters i missed for this ?  adding some sleep 10; chmod
 770 and chgrp postfix to the socket seems...weird to me :)

Add postfix user to defang group.

-- 
[plen: Andrew] Andrzej Adam Filip : a...@onet.eu
It is better to never have tried anything 
than to have tried something and failed.
  -- motto of jerks, weenies and losers everywhere
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] mimedefang+postfix on debian lenny

2009-11-10 Thread Richard Laager
On Tue, 2009-11-10 at 22:30 +0100, ADNET Ghislain wrote:
 i will try to contact him. I run also in another issue. Postfix runs as 
 the user posfix and i do not found any way to configure mimedefang to 
 have a socket that let the postfix user to communicate with it.  Is 
 there any parameters i missed for this ?  adding some sleep 10; chmod 
 770 and chgrp postfix to the socket seems...weird to me :)

Does this solve the problem:
sudo adduser postfix defang

Richard


signature.asc
Description: This is a digitally signed message part
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] new install

2009-11-10 Thread Aniruddha Barua
You also need to copy the file redhat/mimedefang-sysconfig from mimedefang 
source directory to /etc/sysconfig/mimedefang file. Then restart mimedefang 
service.

--Aniruddha Barua.


- Original Message 
From: dhottin...@harrisonburg.k12.va.us dhottin...@harrisonburg.k12.va.us
To: mimedefang@lists.roaringpenguin.com mimedefang@lists.roaringpenguin.com
Sent: Wed, November 11, 2009 12:07:09 AM
Subject: [Mimedefang] new install

Ive installed mimedefang sucessfully.  Its installed on a redhat dist.  I 
copied the redhat init script to /etc/init.d and tried to get it to start.  I 
get an error message that says:
Starting mimedefang-multiplexor: ERROR: You must not run mimedefang-multiplexor 
as root.
Use the -U option to set a non-root user.
   [FAILED]
Starting mimedefang: ERROR: You must not run mimedefang as root.
Use the -U option to set a non-root user.

Can someone help me with the syntax of the init file so it will start 
mimedefang as a user named defang?  Ive been reading throught the readme and 
man pages, but dont seem to be able to wrap my brain around the syntax.

thanks,

ddh


--Dwayne Hottinger
Network Administrator
Harrisonburg City Public Schools

Everything should be made as simple as possible, but not simpler.
-- Albert Einstein

The hottest places in Hell are reserved for those who, in times of moral
crisis, preserved their neutrality.
-- Dante

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang



  
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] quota alert

2009-11-10 Thread Cliff Hayes
Hello,

I programmed mimedefang to send a reject to the sender if user's mailbox is
full.
I'd also like to send a one-line email to the receiver notifying him/her
that messages are being rejected due to full box.  That way the user knows
why they are suddenly not receiving email and can fix the issue without
calling support.
Since I'm not using the Linux quota system, so the mailbox isn't really
full, it's just over the limit that I set.
What is the best way to send a message to a user from within mimedefang?
I'm planning to use the standard perl sendmail -t from filter_end in
mimedefang-filter unless there is something built into mimedefang.

Thanks,

Cliff

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] FW: quota alert

2009-11-10 Thread Cliff Hayes
ok, I tried that ... bad idea.
Then I tried this in filter_end ... and it ignored the
replace_entire_message and simply delivered the message as-is:

  action_notify_sender(The mailbox for $userName is full. Subject:
$afoMsgSubject \n);
  $entity = From: Support\nSubject: Your mailbox is full!\nYour mailbox
is full and rejecting messages\n;
  replace_entire_message($entity);


-Original Message-
From: mimedefang-boun...@lists.roaringpenguin.com
[mailto:mimedefang-boun...@lists.roaringpenguin.com]on Behalf Of Cliff
Hayes
Sent: Tuesday, November 10, 2009 9:33 PM
To: mimedefang@lists.roaringpenguin.com
Subject: [Mimedefang] quota alert


Hello,

I programmed mimedefang to send a reject to the sender if user's mailbox is
full.
I'd also like to send a one-line email to the receiver notifying him/her
that messages are being rejected due to full box.  That way the user knows
why they are suddenly not receiving email and can fix the issue without
calling support.
Since I'm not using the Linux quota system, so the mailbox isn't really
full, it's just over the limit that I set.
What is the best way to send a message to a user from within mimedefang?
I'm planning to use the standard perl sendmail -t from filter_end in
mimedefang-filter unless there is something built into mimedefang.

Thanks,

Cliff

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] FW: quota alert

2009-11-10 Thread Cliff Hayes
Got it!  Works like a charm!

I missed the bit about using Mime::Tools to build the entity.

For anyone who wants to build a quota system and notify both the sender and
receiver, it's easy... just get a size from the entity and compare it
against a hard-coded limit.  Then you reject if it's too big using
replace_entire_message and action_notify_sender.

-Original Message-
From: Cliff Hayes [mailto:cha...@afo.net]
Sent: Tuesday, November 10, 2009 11:50 PM
To: mimedefang@lists.roaringpenguin.com
Subject: FW: [Mimedefang] quota alert


ok, I tried that ... bad idea.
Then I tried this in filter_end ... and it ignored the
replace_entire_message and simply delivered the message as-is:

  action_notify_sender(The mailbox for $userName is full. Subject:
$afoMsgSubject \n);
  $entity = From: Support\nSubject: Your mailbox is full!\nYour mailbox
is full and rejecting messages\n;
  replace_entire_message($entity);


-Original Message-
From: mimedefang-boun...@lists.roaringpenguin.com
[mailto:mimedefang-boun...@lists.roaringpenguin.com]on Behalf Of Cliff
Hayes
Sent: Tuesday, November 10, 2009 9:33 PM
To: mimedefang@lists.roaringpenguin.com
Subject: [Mimedefang] quota alert


Hello,

I programmed mimedefang to send a reject to the sender if user's mailbox is
full.
I'd also like to send a one-line email to the receiver notifying him/her
that messages are being rejected due to full box.  That way the user knows
why they are suddenly not receiving email and can fix the issue without
calling support.
Since I'm not using the Linux quota system, so the mailbox isn't really
full, it's just over the limit that I set.
What is the best way to send a message to a user from within mimedefang?
I'm planning to use the standard perl sendmail -t from filter_end in
mimedefang-filter unless there is something built into mimedefang.

Thanks,

Cliff

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang