problems with postfix procmail fetchmail
Hi, I've just configured email with yast2. 1. I can get the emails but I can't send them... Maybe is this:I saw in yast2 help an option with: 'sendmail -q' to send the email. Is there a way I can automate the process? (above all because I have to be root to exec 'sendmail -q') 2. procmail doesn't work(or isn'properly setted), maybe I put some mistakes in ~/.procmailrc that is: MAILDIR=$HOME/Mail DEFAULT=$MAILDIR/inbox :0: * ^(To|cc|Cc):.*suse-linux-e* $HOME/Mail/suse-linux-e when I use fetchmail all the messages remain in /var/mail/ is this correct? 'fetchmail -m /usr/bin/procmail' (to activate procmail) Thank you! Giulio
On 08 Oct 2003 12:05:20 +0200
"Giulio F."
Hi, I've just configured email with yast2. 1. I can get the emails but I can't send them... Maybe is this:I saw in yast2 help an option with: 'sendmail -q' to send the email. Is there a way I can automate the process? (above all because I have to be root to exec 'sendmail -q') 2. procmail doesn't work(or isn'properly setted), maybe I put some mistakes in ~/.procmailrc that is:
MAILDIR=$HOME/Mail DEFAULT=$MAILDIR/inbox :0: * ^(To|cc|Cc):.*suse-linux-e* $HOME/Mail/suse-linux-e
when I use fetchmail all the messages remain in /var/mail/ is this correct? 'fetchmail -m /usr/bin/procmail' (to activate procmail) Thank you!
I wrote an howto in italian specifically tailored for SuSE... Give a look here: http://www.webthatworks.it/docs/howto/f-p-sa-pm.asp
Ivan Sergio Borgonovo wrote: [snip]
Give a look here:
Another really helpful url I've bookmarked. The only thing one might add to the pot is feeding amavisd or amavisd-new and an AV package into the mix if you're serving up mail to Windows clients and fancy what babelfish calls "il maiale intero", but that's easy enough to figure out from the amavis docs. Works great here though it certainly likes memory. :)
On Wed, 08 Oct 2003 18:03:39 +0100
Mark Crean
Give a look here:
Another really helpful url I've bookmarked. The only thing one might add to the pot is feeding amavisd or amavisd-new and an AV package into the mix if you're serving up mail to Windows clients and fancy what babelfish calls "il maiale intero", but that's easy enough to
eeeh what?
figure out from the amavis docs. Works great here though it certainly likes memory.
No need for an av... Anyway... YaST did a good job here and added just this line to my main.cf stige:/home/ivan # grep content_filter /etc/postfix/main.cf #content_filter = vscan: ooh and you've to install the packages and update the definition I thought I could offer it as a service to my clients... but I've no clients who use OuchLook ;)... and I'm not a sysadmin.
The 03.10.08 at 19:06, Ivan Sergio Borgonovo wrote:
Anyway... YaST did a good job here and added just this line to my main.cf
stige:/home/ivan # grep content_filter /etc/postfix/main.cf #content_filter = vscan:
Huh? It is disabled (#). -- Cheers, Carlos Robinson
On Thu, 9 Oct 2003 01:21:10 +0200 (CEST)
"Carlos E. R."
The 03.10.08 at 19:06, Ivan Sergio Borgonovo wrote:
Anyway... YaST did a good job here and added just this line to my main.cf
stige:/home/ivan # grep content_filter /etc/postfix/main.cf #content_filter = vscan:
Huh? It is disabled (#).
The only box that's running Windows here is my notebook and I use putty + mutt to read emails (ooh yeah then there are OSes viruses, SQL worms... etc... but an av like that won't help). I just tested it. And it worked... actually the virus signature file was pretty old (SuSE 8.1) but there is still some poor soul out there with Klez (was it?). So I really had the chance to see it was really working. I was really testing the stuff to see if it was easy to make it run... and it was. Just select the packages and turn it on in YaST... Writing a script to fetch the new signature file shouldn't be hard. I don't think there is any reliable av definition that is not commercial unless you're using them for private use... Anyway I'm not that interested, I was just curious. The notebook is used to test some software I write. When I boot in Windows I don't download emails there, nor open MS Office files. The other boxes are Linux.
The 03.10.09 at 08:11, Ivan Sergio Borgonovo wrote:
Anyway I'm not that interested, I was just curious. The notebook is used to test some software I write. When I boot in Windows I don't download emails there, nor open MS Office files. The other boxes are Linux.
Ah, just the same here. I only do virus check to see how it works, and to know if somebody sends me an infected file - but of course, I can not run windows executables in Linux, even if I wanted, and I don't copy them over. No danger :-) -- Cheers, Carlos Robinson
On Wed, Oct 08, 2003 at 12:05:20PM +0200, Giulio F. wrote: : Hi, : I've just configured email with yast2. : 1. I can get the emails but I can't send them... Maybe is this:I saw in : yast2 help an option with: 'sendmail -q' to send the email. Is there a : way I can automate the process? (above all because I have to be root to : exec 'sendmail -q') Hmmm. Is the postfix daemon correctly running? What are your log files showing? : 2. procmail doesn't work(or isn'properly setted), maybe I put some : mistakes in ~/.procmailrc that is: : : MAILDIR=$HOME/Mail : DEFAULT=$MAILDIR/inbox : :0: : * ^(To|cc|Cc):.*suse-linux-e* : $HOME/Mail/suse-linux-e : : when I use fetchmail all the messages remain in /var/mail/ : is this correct? 'fetchmail -m /usr/bin/procmail' (to activate procmail) : Thank you! Check the contents of /etc/sysconfig/postfix. The value of "POSTFIX_MDA" is set to "local" by default. Change that value to "procmail" and then run "SuSEconfig --module postfix" to import your new settings. Afterwards, restart postfix (rcpostfix restart) and then you should be good to go. --Jerry -- Open-Source software isn't a matter of life or death... ...It's much more important than that!
The 03.10.08 at 12:05, Giulio F. wrote:
I've just configured email with yast2. 1. I can get the emails but I can't send them... Maybe is this:I saw in yast2 help an option with: 'sendmail -q' to send the email. Is there a way I can automate the process? (above all because I have to be root to exec 'sendmail -q')
Script '/etc/ppp/poll.tcpip' does it automatically. It is called from '/etc/ppp/ip-up', which in turn, is started from the 'pppd' daemon. Notice that this script also calls fetchmail. I disabled it, I use my own script (ip-up.local).
2. procmail doesn't work(or isn'properly setted), maybe I put some mistakes in ~/.procmailrc that is:
Is this your user file, or root's? The second will not work under postfix.
MAILDIR=$HOME/Mail DEFAULT=$MAILDIR/inbox :0: * ^(To|cc|Cc):.*suse-linux-e* $HOME/Mail/suse-linux-e
I have: VERBOSE=off LOGFILE=$HOME/procmail.log # antispam :0fw | /usr/bin/spamc :0 a: * ^X-Spam-Status: Yes $HOME/Mail/in_spam :0 * ^Original-Recipient: rfc822;robin1.listas@tiscali.es { # Add a Reply-To to this mail list, and move to the correct file. :0f * ^X-Mailinglist: suse-linux-e | /usr/bin/formail -bfi "Reply-To:suse-linux-e@suse.com" :0 a: $HOME/Mail/lists/suse-linux-e # more suse lists here # everything else :0 $HOME/Mail/lists/in_elresto }
when I use fetchmail all the messages remain in /var/mail/ is this correct? 'fetchmail -m /usr/bin/procmail' (to activate procmail)
I use fetchmail with no options, and allow postfix to handle it (so I can reject some headers). It ends up going to procmail. -- Cheers, Carlos Robinson
participants (5)
-
Carlos E. R.
-
Giulio F.
-
Ivan Sergio Borgonovo
-
Jerry A!
-
Mark Crean