View previous topic :: View next topic |
Author |
Message |
Gentoo-Ed Guru
Joined: 21 Apr 2005 Posts: 442 Location: the Netherlands
|
Posted: Thu Feb 15, 2007 6:21 pm Post subject: [CLOSED] Help needed with fetchmail and procmailrc |
|
|
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 |
|
|
Dan Veteran
Joined: 25 Oct 2005 Posts: 1302
|
Posted: Thu Feb 15, 2007 6:32 pm Post subject: |
|
|
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 |
|
|
Gentoo-Ed Guru
Joined: 21 Apr 2005 Posts: 442 Location: the Netherlands
|
Posted: Thu Feb 15, 2007 6:42 pm Post subject: |
|
|
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 |
|
|
Dan Veteran
Joined: 25 Oct 2005 Posts: 1302
|
Posted: Thu Feb 15, 2007 6:47 pm Post subject: |
|
|
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 |
|
|
Gentoo-Ed Guru
Joined: 21 Apr 2005 Posts: 442 Location: the Netherlands
|
|
Back to top |
|
|
Gentoo-Ed Guru
Joined: 21 Apr 2005 Posts: 442 Location: the Netherlands
|
Posted: Sat Feb 17, 2007 2:11 pm Post subject: |
|
|
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 |
|
|
|