Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Qmail: users

Autorespond and forward

 

 

Qmail users RSS feed   Index | Next | Previous | View Threaded


hlocap at gmail

Nov 3, 2009, 1:15 AM

Post #1 of 5 (347 views)
Permalink
Autorespond and forward

I've this configuration:

email1[at]domain.com
email2[at]domain.com

I've set the autorespond (
http://www.inter7.com/devel/autorespond-2.0.5.tar.gz) with qmailadmin for
the two address.
For email1[at]domain.com i've set the forward to email2[at]domain.com too.

So the .qmail file for the two address are:

&email2[at]domain.com
/home/vpopmail/domains/domain.com/bounces/Maildir/
| /usr/bin/autorespond 86400 3 /home/vpopmail/domains/
domain.com/bounces/vacation/message /home/vpopmail/domains/
domain.com/bounces/vacation


/home/vpopmail/domains/domain.com/bounces/Maildir/
| /usr/bin/autorespond 86400 3
/home/vpopmail/domains/domain.com/bounces/vacation/message
/home/vpopmail/domains/domain.com/bounces/vacation<http://domain.com/bounces/vacation/message/home/vpopmail/domains/domain.com/bounces/vacation>


If i send a message to email1[at]domain.com, i receive two message one from
email1[at]domain.com and one from email2[at]domain.com. I would like receive only
the autorespond from email1[at]domain.com.
Is possible?

Thank you,

Mario.


lists-qmail at maexotic

Nov 3, 2009, 1:42 AM

Post #2 of 5 (320 views)
Permalink
Re: Autorespond and forward [In reply to]

On Tue, Nov 03, 2009 at 10:15:36AM +0100, mario fibbi wrote:
> So the .qmail file for the two address are:
>
> &email2[at]domain.com

This is a hack.
Manually change the above address to
|(echo 'Auto-submitted: auto-generated'; cat ) |forward email2[at]domain.com

The added header will (at least should) prevent the autoresponder (and
all other robots and programs) from auto-answering that mail.
See http://tools.ietf.org/html/rfc3834

\Maex


hlocap at gmail

Nov 3, 2009, 3:10 AM

Post #3 of 5 (313 views)
Permalink
Re: Autorespond and forward [In reply to]

2009/11/3 Markus Stumpf <lists-qmail[at]maexotic.de>

> On Tue, Nov 03, 2009 at 10:15:36AM +0100, mario fibbi wrote:
> > So the .qmail file for the two address are:
> >
> > &email2[at]domain.com
>
> This is a hack.
> Manually change the above address to
> |(echo 'Auto-submitted: auto-generated'; cat ) |forward email2[at]domain.com
>
> The added header will (at least should) prevent the autoresponder (and
> all other robots and programs) from auto-answering that mail.
> See http://tools.ietf.org/html/rfc3834
>
> \Maex
>

I've change this:

&email2[at]domain.com
/home/vpopmail/domains/domain.com/bounces/Maildir/
| /usr/bin/autorespond 86400 3 /home/vpopmail/domains/
domain.com/bounces/vacation/message /home/vpopmail/domains/
domain.com/bounces/vacation

into


|(echo 'Auto-submitted: auto-generated'; cat ) |forward email2[at]domain.com
/home/vpopmail/domains/domain.com/bounces/Maildir/
| /usr/bin/autorespond 86400 3 /home/vpopmail/domains/
domain.com/bounces/vacation/message /home/vpopmail/domains/
domain.com/bounces/vacation

The response is one, but comes form email2[at]domain.com.
I would from email1[at]domain.com

Mario.


lists-qmail at maexotic

Nov 3, 2009, 3:55 AM

Post #4 of 5 (313 views)
Permalink
Re: Autorespond and forward [In reply to]

On Tue, Nov 03, 2009 at 12:10:43PM +0100, mario fibbi wrote:
> |(echo 'Auto-submitted: auto-generated'; cat ) |forward email2[at]domain.com
> /home/vpopmail/domains/domain.com/bounces/Maildir/
> | /usr/bin/autorespond 86400 3 /home/vpopmail/domains/
> domain.com/bounces/vacation/message /home/vpopmail/domains/
> domain.com/bounces/vacation

Looks good to me (if the last 3 lines are actually one single line)
However I don't understand the behaviour at all.

Ok, should have looked at the soure code first. Sorry!
The autoresponder doesn't honor "Auto-submitted" headers. *sigh*
So please change
|(echo 'Auto-submitted: auto-generated'; cat ) |forward email2[at]domain.com
to
|(echo 'Precedence: bulk'; cat ) |forward email2[at]domain.com
That should fix the problem to get an auto-answer from email2[at]domain.com.

As to why you didn't get a message from user1:
There is a limit you have set: 86400 3
Maybe this limit was met?

\Maex


hlocap at gmail

Nov 3, 2009, 5:30 AM

Post #5 of 5 (312 views)
Permalink
Re: Autorespond and forward [In reply to]

2009/11/3 Markus Stumpf <lists-qmail[at]maexotic.de>

> On Tue, Nov 03, 2009 at 12:10:43PM +0100, mario fibbi wrote:
> > |(echo 'Auto-submitted: auto-generated'; cat ) |forward
> email2[at]domain.com
> > /home/vpopmail/domains/domain.com/bounces/Maildir/
> > | /usr/bin/autorespond 86400 3 /home/vpopmail/domains/
> > domain.com/bounces/vacation/message /home/vpopmail/domains/
> > domain.com/bounces/vacation
>
> Looks good to me (if the last 3 lines are actually one single line)
> However I don't understand the behaviour at all.
>
> Ok, should have looked at the soure code first. Sorry!
> The autoresponder doesn't honor "Auto-submitted" headers. *sigh*
> So please change
> |(echo 'Auto-submitted: auto-generated'; cat ) |forward
> email2[at]domain.com
> to
> |(echo 'Precedence: bulk'; cat ) |forward email2[at]domain.com
> That should fix the problem to get an auto-answer from email2[at]domain.com.
>
>
Great, it works!!!



> As to why you didn't get a message from user1:
> There is a limit you have set: 86400 3
> Maybe this limit was met?
>
>
> Yes.

Thak you,

Mario.

Qmail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.