Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postfix autoreply with attached file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dmolavi
Apprentice
Apprentice


Joined: 24 Feb 2003
Posts: 153
Location: Washington Township, NJ

PostPosted: Tue Jun 03, 2003 2:28 pm    Post subject: postfix autoreply with attached file Reply with quote

I have an email alias set up with my postfix system that users can send an email to, requesting a file. the reply will be a short message with the file (always the same file, ie myzip.zip) attached.
what's the easiest way to implement this?
Back to top
View user's profile Send private message
uzik
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 257

PostPosted: Tue Jun 03, 2003 7:14 pm    Post subject: Reply with quote

The last time I looked at this (before postfix) I thought procmail
was the way to go. You setup scripts to 'read' your incoming mail
and do whatever with it.

If it's really simple you could write a shell
script to do it. There was an option in the alias files to specify that
'program x' would be invoked whenever mail came in to a specific
account. Program x could be a shell script that replies, trashes,
or forwards the mail it gets.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum