Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[CLOSED] Help needed with fetchmail and procmailrc
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
Gentoo-Ed
Guru
Guru


Joined: 21 Apr 2005
Posts: 442
Location: the Netherlands

PostPosted: Thu Feb 15, 2007 6:21 pm    Post subject: [CLOSED] Help needed with fetchmail and procmailrc Reply with quote

PLEASE READ MY LAST POST IN THIS THREAD, THATS THE MOST CURRENT ONE

I'm following this guide http://gentoo-wiki.com/HOWTO_Email_System_for_the_Home_Network and I came to editing /etc/postfix/main.cf and came to the next question(s):

1. the home_mailbox location is stored in ~/.maildir if I'm right. Can you e.g. put all these in their own partion somewhere instead of in the home folders?
2. will each user have a ~/.procmailrc file


Last edited by Gentoo-Ed on Sat Feb 17, 2007 5:40 pm; edited 4 times in total
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Thu Feb 15, 2007 6:32 pm    Post subject: Reply with quote

I think that you can symlink to them if you wanted....

ln -s /mailbox/.username /home/username/.maildir
_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
Gentoo-Ed
Guru
Guru


Joined: 21 Apr 2005
Posts: 442
Location: the Netherlands

PostPosted: Thu Feb 15, 2007 6:42 pm    Post subject: Reply with quote

thanks

question 3: In the saslpass file you put
Code:
smtp.isp.com      beo739:rsmtp-pass

What if it doens't require authentication?
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Thu Feb 15, 2007 6:47 pm    Post subject: Reply with quote

If you don't want authentication the make sure it is disabled in main.cf
ie...

smtpd_tls_auth_only = no
smtpd_use_tls = no

yes requires auth
_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
Gentoo-Ed
Guru
Guru


Joined: 21 Apr 2005
Posts: 442
Location: the Netherlands

PostPosted: Thu Feb 15, 2007 6:59 pm    Post subject: Reply with quote

thanks.

Though now I'm thinking I made the wrong choice again. I came to my aliases but now I think this isn't my solution.

My situation:
domain1 - catchall mail adres
domain2 - catchall mail adres

needs to be collected
needs to be scaned/filtered/divided between users according to aliases

I started with https://forums.gentoo.org/viewtopic-t-539101-highlight-.html but that doesn't collect the mail
Now this one http://gentoo-wiki.com/HOWTO_Email_System_for_the_Home_Network which I think isn't rigth (or is it)

what to do
Back to top
View user's profile Send private message
Gentoo-Ed
Guru
Guru


Joined: 21 Apr 2005
Posts: 442
Location: the Netherlands

PostPosted: Sat Feb 17, 2007 2:11 pm    Post subject: Reply with quote

Well I'm still busy with my setup using E-mail systems for the home network. Now I came to fetchmail and procmailrc. I want fetch mail to run as root which I saw in athread is possible by adding it with rc-update. This way it will always run and this is needed for I have a popaccount where all the mail will come in.

Now procmailrc. Do I need this as root too in this case with a rule for each TO address or is that done with the alias file? I mean something like:
Code:
:0
* ^To:.*myrealname\@apparition\.ath\.cx
.business/

And that for each person, of course changing the folder line in something like /MAILDIRECTORY/USER/ or /home/USER/maildir if it isn't possible to put all mail in one location in stead of user home dirs. But if it is possible, what else do I have to do to achieve this?
Code:
 /etc/init.d/fetchmail start
 * Caching service dependencies ...                                       [ ok ]
 * Configuration file /etc/fetchmailrc not found

Though I get this error above..
Well I adjusted that by adding the fetchmailrc to /etc. Starting will now produce:
Code:
computer-01 ~ # /etc/init.d/fetchmail start to the test account (sending on line at my ISP)
 * Starting fetchmail ...
fetchmail: WARNING: Running as root is discouraged. 

But it works!! But where is the mail gone?? It's gone on the internet account (webmail of the provider doesn't show anymore) so where is it? I sent a mail with TESTING
Code:
PROCMAILRC FILE stored in root as .procmailrc

MAILDIR=/root/mail
DEFAULT=$MAILDIR

#
## Begin recipes
#
:0
* ^SubjectL:.*testing*
.TEST/

the log shows (domains altered):
Code:

Feb 17 16:08:36 [postfix/smtpd] connect from localhost[127.0.0.1]
Feb 17 16:08:36 [postfix/smtpd] 31CE44C044: client=localhost[127.0.0.1]
Feb 17 16:08:36 [postfix/cleanup] 31CE44C044: message-id=<170FD62CE69A477DA8BE684525F1A346.MAI@ISPdomain.com>
Feb 17 16:08:36 [postfix/qmgr] 31CE44C044: from=<mobile@domain.com>, size=1076, nrcpt=1 (queue active)
Feb 17 16:08:36 [postfix/local] 31CE44C044: to=<root@localhost.domaindydsn.com>, orig_to=<root@localhost>, relay=local, delay=0.07, delays=0.06/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail)
Feb 17 16:08:36 [postfix/qmgr] 31CE44C044: removed
Feb 17 16:08:36 [postfix/smtpd] disconnect from localhost[127.0.0.1]


Two other question:
Is the polling_period in minutes or seconds?
The hostname is now too long... I followed the instuctions to make the /etc/hostname file

UPDATE I think I found the mail. in .maildir/new I see items counting up each time I send a mail...
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