Hello Andy,
 
For your script you can use the general idea I'm using for quota checks.
 
You should add path to mailboxfull (or whatever you name it) file pretty close 
to the start of smtpd_recipient_restrictions, something like this in the 
main.cf file:
 
smtpd_recipient_restrictions =
            permit_mynetworks,
            permit_sasl_authenticated,
            reject_unauth_destination,
            check_recipient_access regexp:/etc/postfix/mailboxfull,
 
Run quota.pl (attached) as a cron job, like this (I do it every 30 min.):
*/30 * * * * /usr/lib/cyrus/quota/quota.pl
 
Now all e-mails coming to the full mailboxes will be rejected, producing no 
unnecessary  traffic.
 
You should make a script which populate mailboxfull file with the local 
usernames, run it instead of quota.pl and wuala, I got what you needed.
 
Regards,
Leon Kolchinsky
 
 
 
 

________________________________

От: [EMAIL PROTECTED] от имени Andy
Отправлено: Вт, 23.08.2005 17:55
Кому: [email protected]
Тема: Re: [Web-cyradm] mail local delivery and not in cyrus account



I found the problem:

In postfix/main.conf  I had:
mailbox_transport =
fallback_transport = cyrus

so.. the mail was not send first to cyrus.

mailbox_transport = cyrus
fallback_transport =

Now it works fine.

I'm also looking to write some queries to local_recipient_map, so that
emails send to inexistent mailboxes are rejected directly from postfix and
not from cyrus. This way we can free some... unnecesarry traffic/resources.
Does anybody has this done??

Best regards,
Andy.

----- Original Message -----
From: "Marcel Hartmann" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, August 23, 2005 9:23 AM
Subject: RE: [Web-cyradm] mail local delivery and not in cyrus account


> Hi,
>
>> Subject: Re: [Web-cyradm] mail local delivery and not in cyrus account
>>
>> Andy wrote:
>> > Hi to all,
>> >
>> > I have 2 domains, on one I use simple names like
>> name.prenome and on
>> > the other like: name.domain1.com.
>> >
>> > Now I also made a local user on the system exactly with the
>> same name:
>> > name.prenome and the emails that I sent to that
>> > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  are
>> > delivered locally and not in the cyrus email account. How
>> can I avoid this???
>>
>> Honestly I dont know :-(
>
> Could it be the unixhirarchiesep:yes in imapd.conf?
>
>>
>> >
>> > Another thing: if I have a local user(does not have a cyrus
>> mailbox)
>> > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> then de mail is
>> delivered
>> > locally to this user. How can I stop this??? I want that
>> emails to be
>> > sent only in cyrus mailboxes...
>> >
>>
>> Create a cyrus mailbox for that user (which is different from the
>> unix-user) and create a alias for this user.
>
> Like root: mailobox0001
>
> in /etc/aliases;newaliases;
>
> rgds
> Marcel
>
> _______________________________________________
> This mailing list is hosted and supported
> by bit-heads GmbH | http://www.bit-heads.ch
>
> _______________________________________________
> Web-cyradm mailing list
> [email protected]
> http://www.web-cyradm.org/mailman/listinfo/web-cyradm
>
>

_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm


<<winmail.dat>>

_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm

Reply via email to