#1  
Old 13th October 2006, 17:58
Wido Wido is offline
Junior Member
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix and Autoresponders

Hi,

I am making a MySQL based autoresponder for postfix in combination with this howto: http://www.howtoforge.com/virtual_po..._quota_courier

Now i have made:

Code:
autorespond  unix -       n       n       -       -       pipe flags=F
  user=nobody argv=/usr/local/bin/autorespond ${sender} ${recipient}
In the transport table i add:

domain: user@example.com
transport: autorespond:

That works fine, the mail gets delivered to the program "autorespond" wich fetches some data from the MySQL and sends an autorespond message.

But here comes the problem.

Since the message gets delivered to the "autorespond transport" it does not end up in the users Maildir.

I want to do both

Is it possible to deliver a message to "autorespond" and "virtual", so that autorespond can sent a message and virtual can deliver the mail to the users Maildir?

I know there are many ways to rome, but wich one fits in best in this situation?
Reply With Quote
Sponsored Links
  #2  
Old 14th October 2006, 15:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by Wido
Since the message gets delivered to the "autorespond transport" it does not end up in the users Maildir.
I think you must change your autorespond script so that it still puts the original message into the recipient's Maildir.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 4th January 2008, 01:31
iyeat iyeat is offline
Member
 
Join Date: Dec 2007
Posts: 43
Thanks: 4
Thanked 1 Time in 1 Post
Default

I know this thread is old... but I wanted to see if my logic applies:

Using the same setup as Wido...
Code:
autorespond  unix -       n       n       -       -       pipe flags=F
  user=nobody argv=/usr/local/bin/autorespond ${sender} ${recipient}
I would create a vacation tld just to use as a fake in my domains table:
Code:
mysql> select * from domains;
+------------------+
| domain           |
+------------------+
| example.com      | 
| vaca.example.com | 
+------------------+
2 rows in set (0.00 sec)
In the forwardings table, I'll forward mail for my example user so that it will deliver to the user's mailbox as well as a user on the vacation tld:
Code:
mysql> select * from forwardings;
+------------------+----------------------------------------+
| source           | destination                            |
+------------------+----------------------------------------+
| user@example.com | user@example.com,user@vaca.example.com | 
+------------------+----------------------------------------+
1 row in set (0.00 sec)
Then in the transport table, I set up so that mail for any user on the vacation tld is forwarded to the autoresponder:
Code:
mysql> select * from transport;
+-------------------+--------------+
| domain            | transport    |
+-------------------+--------------+
| @vaca.example.com | autorespond: | 
+-------------------+--------------+
1 row in set (0.00 sec)
Theoretically then, anything sent to a @vaca.example.com email address will get piped to the autoresponder -- does that sound correct?

Question 2 is -- suppose I forwarded the mail to user@example.com@vaca.example.com -- would that work properly? Does that give me any benefit here?

Thanks!

Caio
Reply With Quote
  #4  
Old 4th January 2008, 19:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by iyeat
Theoretically then, anything sent to a @vaca.example.com email address will get piped to the autoresponder -- does that sound correct?
That *could* work. Have you tested it?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 4th January 2008, 20:09
iyeat iyeat is offline
Member
 
Join Date: Dec 2007
Posts: 43
Thanks: 4
Thanked 1 Time in 1 Post
 
Default

Not yet -- Haven't had much time to do so as we're having severe inclement weather here in California which is affecting the power grid. I will attempt to do so and report back.

Caio
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.