Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th January 2008, 01:26
Aldert Aldert is offline
Junior Member
 
Join Date: Jul 2007
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default How to forward email to a subfolder?

Ok I've given up and don't feel happy right now

I try to get mail to user2@example.com to get into the inbox of info@example.com. But not only that. I want it in the subfolder of info, namely info/user2. I use postfix with maildirs, so I thought let's try to write the mail to a file:
/home/example.com/homes/info/Maildir/.INBOX.user2/new/

I get, using all means to prevent it:
Jan 7 15:00:48 serv1 postfix/local[19079]: warning: maildir access problem for UID/GID=99/99: create maildir file /home/example.nl/homes/info/Maildir/.INBOX.user2/new/1199714448.P19079.serv1.example.com: Permission denied
Jan 7 15:00:48 serv1 postfix/local[19079]: warning: perhaps you need to create the maildirs in advance

Other option doesn't help as well:

Jan 8 00:52:23 serv1 postfix/local[23918]: 998993EF398: to=<user2-example.com@serv1.example.com>, orig_to=<ebay@aerotronic.nl>, relay=local, delay=0.2, delays=0.11/0.02/0/0.07, dsn=5.3.0, status=bounced (Command died with status 13: "/etc/webmin/virtual-server/filter.pl /home/aerotronic.nl/homes/filterRulesInfo ebay". Command output: Failed to open /home/example.nl/homes/info/Maildir/.INBOX.user2/new/ ; Permission denied at /etc/webmin/virtual-server/filter.pl line 77. )

ls -la /.../

total 8
drwxrwxrwx 2 info.example.com example.com 4096 Jan 7 13:25 .
drwxrwxrwx 5 info.example.com example.com 4096 Jan 7 23:51 ..

I've tried chown -R postfixostfix on the dir as well. Also chown -R 99:99, as I see that in the logs, the user is unknown.

Maybe that is the problem? That user 99 in group 99??

But then, I set the most loose permission, still permission denied to create that file with the mail contents

TIAA (again) !
Reply With Quote
Sponsored Links
  #2  
Old 8th January 2008, 13:14
Aldert Aldert is offline
Junior Member
 
Join Date: Jul 2007
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

I finally did it. I didn't try to search on submailbox or so. It gave some interesting results. As I did not want to start using procmailrc as that is a kind of overkill solution to me (and will even take more time), I found a result on the recipient_delimiter parameter. I enabled it, but still no luck, it only came in the user's inbox, not in the subbox. If found the delimiter doesn't apply on aliases (only local, canonical and some more). I looked into the configuration for postfix and changed the rights of the local delivery agent (for aliases this is used appearantly, although using info+user2@example.com did not work, as stated above) to info.example.com.

Now I see the mail arrive into the subfolder or better, submailbox.

I'm sure there is a better solution :-)
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
BUG: Forward email? edge General 3 1st June 2007 16:49
All email forward to different address zaqavis HOWTO-Related Questions 3 24th November 2006 16:04
Email Forward Issue with ISPConfig 2.2.6 Rocky Installation/Configuration 2 12th October 2006 16:04
Help forward root email to me domino Technical 10 2nd May 2006 15:01
email forwarding locally consumes all resources rdells General 20 1st May 2006 19:43


All times are GMT +2. The time now is 11:29.


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