Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 7th June 2006, 20:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

That should be correct. But $1 is ${extension} ans $2 is ${recipient}.

You can add
Code:
echo "$2" > /tmp/testfile
to your maildroprc. Then you can check if the correct recipient email address is written to /tmp/testfile.
__________________
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
Sponsored Links
  #12  
Old 7th June 2006, 22:38
MarcelDeR MarcelDeR is offline
Junior Member
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by triak
I will attach my maildroprc and master.cf configuration files.

The holidays here in Finland are just starting and I'm in a bit of trouble here...
Plz help a bit :=)
Add in maildroprc between "sendmail" and "-f" a "-t" to tell sendmail to look in to the message for the addresses.

Greetings from Holland
Reply With Quote
  #13  
Old 8th June 2006, 07:59
triak triak is offline
Junior Member
 
Join Date: Jan 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Got it!

I added the -t option to sendmail in maildroprc and changed the $FROM variable to $RECIPIENT at the bottom of the script. And now it works!!

I ran into another problem. Maildrop should auto-create maildirs and vacation directory when mail arrives. Can't figure out why the directory creation fails.
In the same script the "test" command works fine with vacation messages and maildrop parses theese messages.

mkdir -p /var/vmail/$HOST/$USER does not work. Maildrop complains about not beeing able to change to home directory.
Is there a difference in wich stage of the script this command is run?

.j
Reply With Quote
  #14  
Old 8th June 2006, 15:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

I guess this is some kind of permissions problem.
__________________
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
  #15  
Old 10th June 2006, 19:21
todgerme todgerme is offline
Member
 
Join Date: Dec 2005
Location: Belfast, Northern Ireland
Posts: 54
Thanks: 0
Thanked 1 Time in 1 Post
Default

triak, have you tried a simple maildrop filter yet, not globally to test maildrop is working correctly, like the one I placed in the guide to filter spam? better to crawl before you can walk.

after that i would modify that script, try piping to the vacation (apt-get install vacation) program with vacation.msg files instead of having different files for subject etc etc and using sendmail as I saw looking at your maildroprc file.

otherwise if you are struggling to get an autoreponder working, use yaa and write a quick gui for users to setup the autoresponder.

let me know how you get on with the basic spam filter first.
Reply With Quote
  #16  
Old 19th June 2006, 21:13
triak triak is offline
Junior Member
 
Join Date: Jan 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Vacation plugin working... but lost forwarding ability

It seems that the virtual transport method was responsible of forwardings using this setup. How can i implement simple forwardings to my maildroprc?
They are not so many so I can wrtite them straight to the script.
Or maybe use the existing mysql forward table?
And another bug that appeared after switching to maildrop, mail for user@mail.abc.fi (mail is the servers hostname) that should go to user@abc.fi does not get delivered anymore. How can i address all mail for mail.abs.fi to abc.fi? Theese are important mail's such as root, postmaster etc.

tia. Johannes
Reply With Quote
  #17  
Old 20th June 2006, 13:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Quote:
Originally Posted by triak
It seems that the virtual transport method was responsible of forwardings using this setup. How can i implement simple forwardings to my maildroprc?
They are not so many so I can wrtite them straight to the script.
Or maybe use the existing mysql forward table?
Did you have a look here? http://www.courier-mta.org/?maildrop.html


Quote:
Originally Posted by triak
And another bug that appeared after switching to maildrop, mail for user@mail.abc.fi (mail is the servers hostname) that should go to user@abc.fi does not get delivered anymore. How can i address all mail for mail.abs.fi to abc.fi? Theese are important mail's such as root, postmaster etc.

tia. Johannes
I think you can do that with transports.
__________________
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
  #18  
Old 22nd June 2006, 03:08
todgerme todgerme is offline
Member
 
Join Date: Dec 2005
Location: Belfast, Northern Ireland
Posts: 54
Thanks: 0
Thanked 1 Time in 1 Post
Default

i am not entirely sure what you by transports but if you look at the mail filter guide for maildrop, you will see you can simply transport any email address ot the maildrop transport when required.

instead of having a global maildroprc to handle autoresponders have individualised ones, with something similar to:

logfile "/u0/vmail/.mailfilters/mailfilter-log.txt"
| /usr/bin/vacation
log "Firstly piped mail to vacation program "
cc "/home/vmail/example.com/user/new"
log "deliver mail to users mailbox aswell! "

i hope it helps.
Reply With Quote
  #19  
Old 27th June 2008, 17:00
wierben wierben is offline
Junior Member
 
Join Date: Jun 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Did anyone got this working? I tried and tried, can't get the mail to go through the maildrop pipe. Is there a setting i'mn ot seeing?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Problem / Question ccix Server Operation 8 3rd April 2010 11:39


All times are GMT +2. The time now is 16:34.


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