Re: [vchkpw] To bounce or not to bounce...

2002-11-05 Thread Anders Brander
Hi,

On Tuesday 05 November 2002 10:18, Solfrid Kjær wrote:
> Look at that, the little diff actually made it! ;)
> I've tried that solution before, but then it didn't even recieve mail at
> all after..hehe

Heh :)

btw, Please note that all the old mail, that vdelivermail failed to catch 
earlier, is queued now. (qmail-qread should confirm that). They will 
bounce one by one as the delivering is retried. (Depending on how long 
they have been queued, at various times as an effect of qmails quadratic 
backof)

> Thanks! :)

Allways a pleasure :)

/Anders





Re: [vchkpw] To bounce or not to bounce...

2002-11-05 Thread Solfrid Kjær

Look at that, the little diff actually made it! ;)
I've tried that solution before, but then it didn't even recieve mail at all 
after..hehe

Thanks! :)

.Raven



> > I got a program running first when mail arrives, and returns 100 if m=
ail
> > should not be delivered and prossessing the .qmail-file stoppes.
> > This if fair enought, but I want the mail to bounce back to sender if=
it
> > was not delivered.
>=20
> Is this running from .qmail-default or another .qmail-*? If it's anothe=
r
> file this can be an explanation.
>=20
It's running from the file /home/vpopmail/domain/user/.qmail=20
(In the domain/.qmail-default it's okey, but it has to be user-spesific..=
)


> > Is there any way to say in the domain/user/.qmail-file that "If
> > something, then bouche, else deliver the mail to the Maildir"?
>=20
> Yep, return 100 (and some bounce text) for bounce - 0 for delivery.
>=20
And how exactly would I put the bounce-text?

> Are you using vpopmail < 5.3.10? There's a small bug in vdelivermail, I=
t
> fails to catch return code 100, instead treating it as 111 (temp error)=
I
> made a patch against 5.3.9, don't know how well it applies to other
> versions, but it's a oneliner, should be easy to fix by hand :)
> http://fmail.dk/stuff/vdeliver-command-return-100.diff
>=20
Actually I've just upgraded to 5.2.1 to make the user-qmail-thing work.
As I understood this is the latest stable version, and as a mailserver it=
has to be stable.


Hope this helps...

/Anders

Yes, thank you! :)




Re: [vchkpw] To bounce or not to bounce...

2002-11-05 Thread Anders Brander
Hi,

On Tuesday 05 November 2002 09:53, [EMAIL PROTECTED] wrote:
> It's running from the file /home/vpopmail/domain/user/.qmail
> (In the domain/.qmail-default it's okey, but it has to be
> user-spesific..)

If it's okay in the default-file, then it's the problem with vdelivermail i 
was referring to. See vdelivermail.c line 713.

> > Yep, return 100 (and some bounce text) for bounce - 0 for delivery.
> And how exactly would I put the bounce-text?

Print to file descriptor 0.

> > Are you using vpopmail < 5.3.10? There's a small bug in vdelivermail,
> > It fails to catch return code 100, instead treating it as 111 (temp
> > error) I made a patch against 5.3.9, don't know how well it applies to
> > other versions, but it's a oneliner, should be easy to fix by hand :)
> > http://fmail.dk/stuff/vdeliver-command-return-100.diff
> Actually I've just upgraded to 5.2.1 to make the user-qmail-thing work.
> As I understood this is the latest stable version, and as a mailserver
> it has to be stable.

I made a patch for 5.2.1 just for you :)
http://fmail.dk/stuff/vpopmail-5.2.1-vdeliver-command-100.diff

Does this help?

/Anders





Re: [vchkpw] To bounce or not to bounce...

2002-11-05 Thread raven
> > I got a program running first when mail arrives, and returns 100 if mail
> > should not be delivered and prossessing the .qmail-file stoppes.
> > This if fair enought, but I want the mail to bounce back to sender if it
> > was not delivered.
> 
> Is this running from .qmail-default or another .qmail-*? If it's another
> file this can be an explanation.
> 
It's running from the file /home/vpopmail/domain/user/.qmail 
(In the domain/.qmail-default it's okey, but it has to be user-spesific..)


> > Is there any way to say in the domain/user/.qmail-file that "If
> > something, then bouche, else deliver the mail to the Maildir"?
> 
> Yep, return 100 (and some bounce text) for bounce - 0 for delivery.
> 
And how exactly would I put the bounce-text?

> Are you using vpopmail < 5.3.10? There's a small bug in vdelivermail, It
> fails to catch return code 100, instead treating it as 111 (temp error) I
> made a patch against 5.3.9, don't know how well it applies to other
> versions, but it's a oneliner, should be easy to fix by hand :)
> http://fmail.dk/stuff/vdeliver-command-return-100.diff
> 
Actually I've just upgraded to 5.2.1 to make the user-qmail-thing work.
As I understood this is the latest stable version, and as a mailserver it has to be 
stable.


Hope this helps...

/Anders

Yes, thank you! :)





Re: [vchkpw] To bounce or not to bounce...

2002-11-05 Thread Anders Brander
Hi,

On Tuesday 05 November 2002 09:22, [EMAIL PROTECTED] wrote:
> Is there any way to say in the domain/user/.qmail-file that "If
> something, then bouche, else deliver the mail to the Maildir"?

Yep, return 100 (and some bounce text) for bounce - 0 for delivery.

> I got a program running first when mail arrives, and returns 100 if mail
> should not be delivered and prossessing the .qmail-file stoppes.
> This if fair enought, but I want the mail to bounce back to sender if it
> was not delivered.

Is this running from .qmail-default or another .qmail-*? If it's another 
file this can be an explanation.

Are you using vpopmail < 5.3.10? There's a small bug in vdelivermail, It 
fails to catch return code 100, instead treating it as 111 (temp error)  I 
made a patch against 5.3.9, don't know how well it applies to other 
versions, but it's a oneliner, should be easy to fix by hand :)
http://fmail.dk/stuff/vdeliver-command-return-100.diff

Hope this helps...

/Anders





[vchkpw] To bounce or not to bounce...

2002-11-05 Thread raven

Hi!

Is there any way to say in the domain/user/.qmail-file that "If something, then 
bouche, 
else deliver the mail to the Maildir"?

I got a program running first when mail arrives, and returns 100 if mail should not be 
delivered and 
prossessing the .qmail-file stoppes.
This if fair enought, but I want the mail to bounce back to sender if it was not 
delivered.


.Raven