Re: Postfix / Fetchmail Question
Graham Bentley wrote: Hi All, There are a couple of things that I would like to achieve with my running Fetchmail / Postfix combo ; 1) When a mail comes in for a specific local user it is immediately forwarded to another external address. This is for when some staff work from home occasionally I have goofed about with sender_canonical but I suspect this is more to do with re-writing the headers /addresses etc although I am probably getting all this round my neck a bit and getting bogged down in reading! Why not just put a .forward (containing the dest. address) file in the users home? 2) Is it possible to have a copy of all in / out mail sent to the boss's email box ? I have filled out 'aliases' and run newaliases for email that is for non user account (for example we have [EMAIL PROTECTED] and [EMAIL PROTECTED]) There are several ways to achieve that, if the account is aliased through /etc/aliases, just add another account to the recipient list: boss: [EMAIL PROTECTED],[EMAIL PROTECTED] If the account is the final destination of several adresses you might want to have a look at procmail. But be sure to tell him, otherwise it might be illegal. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Postfix / Fetchmail Question
Hi All, There are a couple of things that I would like to achieve with my running Fetchmail / Postfix combo ; 1) When a mail comes in for a specific local user it is immediately forwarded to another external address. This is for when some staff work from home occasionally I have goofed about with sender_canonical but I suspect this is more to do with re-writing the headers /addresses etc although I am probably getting all this round my neck a bit and getting bogged down in reading! 2) Is it possible to have a copy of all in / out mail sent to the boss's email box ? I have filled out 'aliases' and run newaliases for email that is for non user account (for example we have [EMAIL PROTECTED] and [EMAIL PROTECTED]) Anyway, I digress, any help on the above graciously appreciated ! ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Postfix / Fetchmail Question
Why not just put a .forward (containing the dest. address) file in the users home? Works perfectly - thanks ! 2) Is it possible to have a copy of all in / out mail sent to the boss's email box ? Incoming is easy with always_bbc = bossacount in main.cf Thanks for help ! ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fetchmail question
I have put following content in my fetchmailrc. poll pop.wlink.com.np localdomains wlink.com.np: protocol pop3 user bikrant with pass xxx to samit xyz test bikrant here Now it is working fine :) regards, Bikrant On Sunday 27 June 2004 19:45, Gautam Gopalakrishnan wrote: On Sun, 27 Jun 2004 15:02:57 +0545, Bikrant Neupane [EMAIL PROTECTED] wrote: Sorry.. I mentioned the wrong header :( Indeed the hearder was added by sendmail. This is the one added by fetchmail Received: from pop2.wlink.com.np [202.79.32.43] by localhost with POP3 (fetchmail-5.9.0) for [EMAIL PROTECTED] (single-drop); Sun, 27 Jun 2004 00:32:39 +0545 (NPT) Hello! Would you mind posting your .fetchmailrc here? I think it should have a user1 there is user2 here clause. poll server.host with proto POP3 user 'remoteuser' there is 'localuser' here options flush fetchall ssl So mail for remoteuser gets delivered to localuser. Gautam ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
fetchmail question
Hi... I am trying to retrive mails using fetchmail and then deleiver it locally using sendmail. I found that fetchmail adds the following header in every messages that it retrives from the pop server. Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id i5QIldIr030563 for [EMAIL PROTECTED]; Sun, 27 Jun 2004 00:32:39 +0545 I am running fetchmail as root user so it has modified the recepient to [EMAIL PROTECTED] Isn't there any way so that fetchmail retains the original recepient ? I tried -n and --invisible options but they didn't help. Thanks, Bikrant ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fetchmail question
Bikrant wrote: Hi... I am trying to retrive mails using fetchmail and then deleiver it locally using sendmail. I found that fetchmail adds the following header in every messages that it retrives from the pop server. Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id i5QIldIr030563 for [EMAIL PROTECTED]; Sun, 27 Jun 2004 00:32:39 +0545 I'm not sure about this. But to me it doesn't look like this is added by fetchmail but rather by sendmail. Below you find the header which was added to your original email by fetchmail on my box. Note the difference in the 'from' part. Also I don't think that fetchmail 'speaks' (E)SMTP. Phil. Received: from pop.gmx.net [213.165.64.20] by localhost with POP3 (fetchmail-6.2.0) for [EMAIL PROTECTED] (single-drop); Sun, 27 Jun 2004 10:25:38 +0200 (CEST) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fetchmail question
On Sun, 27 Jun 2004, Bikrant wrote: Hi... I am trying to retrive mails using fetchmail and then deleiver it locally using sendmail. I found that fetchmail adds the following header in every messages that it retrives from the pop server. Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id i5QIldIr030563 for [EMAIL PROTECTED]; Sun, 27 Jun 2004 00:32:39 +0545 I am running fetchmail as root user so it has modified the recepient to [EMAIL PROTECTED] Isn't there any way so that fetchmail retains the original recepient ? I tried -n and --invisible options but they didn't help. Hi, if you count all the RECEIVED: headers you will find that using the --invisible option fetchmail suppresses the fetchmail added RECEIVED: header ... all the others are added by sendmail Oliver -- ... don't touch the bang bang fruit ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fetchmail question
Sorry.. I mentioned the wrong header :( Indeed the hearder was added by sendmail. This is the one added by fetchmail Received: from pop2.wlink.com.np [202.79.32.43] by localhost with POP3 (fetchmail-5.9.0) for [EMAIL PROTECTED] (single-drop); Sun, 27 Jun 2004 00:32:39 +0545 (NPT) and this one is the full header From [EMAIL PROTECTED] Sun Jun 27 00:32:39 2004 Return-Path: [EMAIL PROTECTED] Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id i5QIldIr030563 for [EMAIL PROTECTED]; Sun, 27 Jun 2004 00:32:39 +0545 Delivered-To: [EMAIL PROTECTED] Received: from pop2.wlink.com.np [202.79.32.43] by localhost with POP3 (fetchmail-5.9.0) for [EMAIL PROTECTED] (single-drop); Sun, 27 Jun 2004 00:32:39 +0545 (NPT) Received: (qmail 31304 invoked from network); 27 Jun 2004 06:05:03 - Received: from unknown (HELO qmail-scanner.wlink.com.np) (202.79.32.74) by 0 with SMTP; 27 Jun 2004 06:05:03 - Received: (qmail 86161 invoked by uid 1008); 27 Jun 2004 06:05:03 - Received: from [EMAIL PROTECTED] by qmail-scanner.wlink.com.np by uid 1002 with qmail-scanner-1.20 (clamscan: 0.60. Clear:RC:1(202.79.32.76):. Processed in 0.607579 secs); 27 Jun 2004 06:05:03 - Received: from smtp1.wlink.com.np (202.79.32.76) by qmail-scanner.wlink.com.np with SMTP; 27 Jun 2004 06:05:02 - Received: (qmail 8704 invoked by uid 508); 27 Jun 2004 06:05:01 - Received: from [202.79.36.168] (HELO bikrant.org.np) by smtp1.wlink.com.np (qmail-smtpd) with SMTP; 27 Jun 2004 06:05:01 - (Sun, 27 Jun 2004 11:50:01 +0545) You can see that mail is to be delivered to [EMAIL PROTECTED] but when it is fetched by fetchmail it is changed to [EMAIL PROTECTED] regards, Bikrant On Sunday 27 June 2004 12:22, Bikrant wrote: Hi... I am trying to retrive mails using fetchmail and then deleiver it locally using sendmail. I found that fetchmail adds the following header in every messages that it retrives from the pop server. Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id i5QIldIr030563 for [EMAIL PROTECTED]; Sun, 27 Jun 2004 00:32:39 +0545 I am running fetchmail as root user so it has modified the recepient to [EMAIL PROTECTED] Isn't there any way so that fetchmail retains the original recepient ? I tried -n and --invisible options but they didn't help. Thanks, Bikrant ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fetchmail question
Sorry.. I mentioned the wrong header :( Indeed the hearder was added by sendmail. This is the one added by fetchmail Received: from pop2.wlink.com.np [202.79.32.43] by localhost with POP3 (fetchmail-5.9.0) for [EMAIL PROTECTED] (single-drop); Sun, 27 Jun 2004 00:32:39 +0545 (NPT) and this one is the full header From [EMAIL PROTECTED] Sun Jun 27 00:32:39 2004 Return-Path: [EMAIL PROTECTED] Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id i5QIldIr030563 for [EMAIL PROTECTED]; Sun, 27 Jun 2004 00:32:39 +0545 Delivered-To: [EMAIL PROTECTED] Received: from pop2.wlink.com.np [202.79.32.43] by localhost with POP3 (fetchmail-5.9.0) for [EMAIL PROTECTED] (single-drop); Sun, 27 Jun 2004 00:32:39 +0545 (NPT) Received: (qmail 31304 invoked from network); 27 Jun 2004 06:05:03 - Received: from unknown (HELO qmail-scanner.wlink.com.np) (202.79.32.74) by 0 with SMTP; 27 Jun 2004 06:05:03 - Received: (qmail 86161 invoked by uid 1008); 27 Jun 2004 06:05:03 - Received: from [EMAIL PROTECTED] by qmail-scanner.wlink.com.np by uid 1002 with qmail-scanner-1.20 (clamscan: 0.60. Clear:RC:1(202.79.32.76):. Processed in 0.607579 secs); 27 Jun 2004 06:05:03 - Received: from smtp1.wlink.com.np (202.79.32.76) by qmail-scanner.wlink.com.np with SMTP; 27 Jun 2004 06:05:02 - Received: (qmail 8704 invoked by uid 508); 27 Jun 2004 06:05:01 - Received: from [202.79.36.168] (HELO bikrant.org.np) by smtp1.wlink.com.np (qmail-smtpd) with SMTP; 27 Jun 2004 06:05:01 - (Sun, 27 Jun 2004 11:50:01 +0545) You can see that mail is to be delivered to [EMAIL PROTECTED] but when it is fetched by fetchmail it is changed to [EMAIL PROTECTED] regards, Bikrant On Sunday 27 June 2004 12:22, Bikrant wrote: Hi... I am trying to retrive mails using fetchmail and then deleiver it locally using sendmail. I found that fetchmail adds the following header in every messages that it retrives from the pop server. Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id i5QIldIr030563 for [EMAIL PROTECTED]; Sun, 27 Jun 2004 00:32:39 +0545 I am running fetchmail as root user so it has modified the recepient to [EMAIL PROTECTED] Isn't there any way so that fetchmail retains the original recepient ? I tried -n and --invisible options but they didn't help. Thanks, Bikrant ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fetchmail question
On Sun, 27 Jun 2004 15:02:57 +0545, Bikrant Neupane [EMAIL PROTECTED] wrote: Sorry.. I mentioned the wrong header :( Indeed the hearder was added by sendmail. This is the one added by fetchmail Received: from pop2.wlink.com.np [202.79.32.43] by localhost with POP3 (fetchmail-5.9.0) for [EMAIL PROTECTED] (single-drop); Sun, 27 Jun 2004 00:32:39 +0545 (NPT) Hello! Would you mind posting your .fetchmailrc here? I think it should have a user1 there is user2 here clause. poll server.host with proto POP3 user 'remoteuser' there is 'localuser' here options flush fetchall ssl So mail for remoteuser gets delivered to localuser. Gautam ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fetchmail question
+++ Dragoncrest [freebsd] [10-03-03 22:26 -0500]: | Hi all. Got a question about fetchmail again. This one should be | easy. I'm looking for the easiest way to get fetchmail to purge a mailbox | for me. Here's what I'm after. First off, when my mail downloads, fetch | has been told (via a config I have in sendmail) to leave mail on the server | if the user has an invalid domain name. IE. From viruses, spam, etc. What | I want it to do is to try to download all of the messages on the server, | then, regardless if they succeed or fail, I want fetchmail to just nuke | them off the server. Currently it only nukes mail that has been | successfully delivered to the local computer. I want it to dump all of | them so that it doesn't end up leaving all the rejected mail messages to | pile up on the server, yet at the same time I don't want it to wipe all of | the messages till it's tried to download each message at least | once. Anyone got any good suggestions on how to setup fetch to do this? | | -- if you are downloading for POP, try filtermail. /usr/ports/mail/filtermail Regards, Shantanu -- Truly great madness can not be achieved without significant intelligence. PGP keyID : 137AFD9E PGP keyID fingerprint : C7DA 3350 1DEA F371 37DC D92A F0D4 C2ED 137A FD9E To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Fetchmail question
Hi all. Got a question about fetchmail again. This one should be easy. I'm looking for the easiest way to get fetchmail to purge a mailbox for me. Here's what I'm after. First off, when my mail downloads, fetch has been told (via a config I have in sendmail) to leave mail on the server if the user has an invalid domain name. IE. From viruses, spam, etc. What I want it to do is to try to download all of the messages on the server, then, regardless if they succeed or fail, I want fetchmail to just nuke them off the server. Currently it only nukes mail that has been successfully delivered to the local computer. I want it to dump all of them so that it doesn't end up leaving all the rejected mail messages to pile up on the server, yet at the same time I don't want it to wipe all of the messages till it's tried to download each message at least once. Anyone got any good suggestions on how to setup fetch to do this? To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: (OT) fetchmail question
On Mon, Feb 10, 2003 at 04:09:37PM -0500, Phillip Smith (mailing list) wrote: Just wondering if anyone has a suggestion for an elegant way to start fetchmail back up for any/all users (with a .fetchmailrc file in their home dir), after a system reboot? Would a script in rc.d/ be the way to go? Do you need to run an instance of fetchmail for each user? There's two ways of starting fetchmail up that would suit: First, take a look at the documentation for '@reboot' in crontab(5). Copy that line into each user's crontab and you're all set. Second: fetchmail daemon mode has the handy feature that the first time you call fetchmail, it daemonizes and runs continuously from then on. Subsequent attempts to run fetchmail will result in signaling the original fetchmail process to poll the mailservers immediately. That means if you configure the user's mail agents to call fetchmail when they hit the 'check for new mail' button (which usually also gets invoked when the mail client starts up) then fetchmail will be started automatically. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: (OT) fetchmail question
There's two ways of starting fetchmail up that would suit: First, take a look at the documentation for '@reboot' in crontab(5). Copy that line into each user's crontab and you're all set. That was the ticket, thanks! : ) Cheers, phillip. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
IMAP/PROCMAIL/FETCHMAIL Question..
Hello I am looking for a bit of direction here.. I would like to use fetchmail to get pop mail and deliver it to a local imap inbox. I am not sure the bet way to do this. I have fetchmail currently getting mail and delivering it to /var/mail. Can fetchmail do this alone? di I need to use procmail? If I do have to use procmail can anybody give me any example fetchmail config. Thanks Chris (please reply direct not subscribed to list) To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
(OT) fetchmail question
Hiya, Just wondering if anyone has a suggestion for an elegant way to start fetchmail back up for any/all users (with a .fetchmailrc file in their home dir), after a system reboot? Would a script in rc.d/ be the way to go? FreeBSD 4.7 p. -- Phillip To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message