Reject instead of bounce

Carsten Burghardt carsten at cburghardt.com
Mon Jun 16 21:50:17 CEST 2008


Alain Spineux schrieb:
> On Sun, Jun 15, 2008 at 11:17 PM, Carsten Burghardt
> <carsten at cburghardt.com> wrote:
>   
>> Alain Spineux schrieb:
>>
>> On Sat, Jun 14, 2008 at 11:17 AM, Carsten Burghardt
>> <carsten at cburghardt.com> wrote:
>>
>>
>> Hi all,
>>
>> I just setup a new kolab server 2 and noticed that people who send
>> emails to unknown users (correct domain but invalid account) get a
>> bounce message. I would prefer the "normal" postfix way to reject the
>> email on the SMTP level so during the communication. Otherwise I get all
>> those spam-emails in the root account. The bounce seems to be executed
>> in the kolabmailfilter script so I'm not sure where I can change this.
>> Or maybe I could at least disable the notification for the postmaster.
>>
>>
>>
>> Which version of kolab ? 2.1 ?
>>
>>
>> Yes, the version is marked as 2.1.99
>>
>> An Openpkg distribution or other native version ?
>>
>>
>> It's a SuSE version.from their rpm's.
>>
>> Can post your /kolab/etc/postfix/main.cf ?
>>
>>
>> Sure, what is the interesting part here as the file is quite large? I didn't
>> make any changes to the template so far so it's purely based on kolab.
>>     
>
> So give me your template or the output of postconf -n
>   
I attached the template.
>> Does this append  when the sender is SMTP authenticated or sending
>> from local network ?
>>
>>
>> This happens when the mail is delivered to the kolab server via SMTP.
>>     
>
> Does this append when the email is sent by a non authenticated user
> sending from outside of
> your local network ?
>   
Exactly. That's what the communication looks like:

Jun 15 22:31:15 openSUSE-103-32-minimal postfix/pipe[4455]: 
99D281C7406B: to=<mail at dokumentarchiv.com>, relay=kolabfilter, delay=2, 
delays=1.3/0.01/0/0.74, dsn=2.0.0, status=sent (delivered via 
kolabfilter service)
Jun 15 22:31:15 openSUSE-103-32-minimal postfix/qmgr[3053]: 
99D281C7406B: removed
Jun 15 22:31:22 openSUSE-103-32-minimal postfix/smtpd[4462]: connect 
from localhost[127.0.0.1]
Jun 15 22:31:22 openSUSE-103-32-minimal postfix/smtpd[4462]: 
7C9921C7406B: client=localhost[127.0.0.1]
Jun 15 22:31:22 openSUSE-103-32-minimal postfix/cleanup[4458]: 
7C9921C7406B: message-id=138ba01c8cf26$b50cc900$1701a8c0 at home97b7f6ea53
Jun 15 22:31:22 openSUSE-103-32-minimal postfix/smtpd[4462]: disconnect 
from localhost[127.0.0.1]
Jun 15 22:31:22 openSUSE-103-32-minimal postfix/qmgr[3053]: 
7C9921C7406B: from=<spammer>, size=2221, nrcpt=1 (queue active)
Jun 15 22:31:22 openSUSE-103-32-minimal postfix/smtp[4459]: 
668021C74078: to=<mail at dokumentarchiv.com>, 
relay=127.0.0.1[127.0.0.1]:10024, delay=8.3, delays=0.61/0.01/0.02/7.6, 
dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 7C9921C7406B)
Jun 15 22:31:22 openSUSE-103-32-minimal postfix/qmgr[3053]: 
668021C74078: removed
Jun 15 22:31:23 openSUSE-103-32-minimal postfix/pipe[4466]: 
7C9921C7406B: to=<myemail>, orig_to=<mail at dokumentarchiv.com>, 
relay=kolabmailboxfilter, delay=0.6, delays=0.15/0.01/0/0.44, dsn=2.0.0, 
status=sent (delivered via kolabmailboxfilter service)
Jun 15 22:31:23 openSUSE-103-32-minimal postfix/pipe[4466]: 
7C9921C7406B: to=<root at inovox.de>, orig_to=<mail at dokumentarchiv.com>, 
relay=kolabmailboxfilter, delay=1.3, delays=0.15/0.01/0/1.2, dsn=5.3.0, 
status=bounced (service unavailable. Command output: Failed to set 
recipient: Mailbox unknown.  Either there is no mailbox associated with 
this name or you do not have authorization to see it. 5.1.1 User 
unknown, code=550, original code 550)


And the bounce is caused by the script.


Carsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/users/attachments/20080616/6aa6d24a/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: main.cf.template
URL: <http://lists.kolab.org/pipermail/users/attachments/20080616/6aa6d24a/attachment.ksh>


More information about the users mailing list