From: General T. L. <ad...@ge...> - 2015-11-05 13:12:29
|
Hi all Can somebody please help. I have setup Postfix/Dovecot/Spamassassin with virtual users, but I need to retrieve emails from my ISP. I am trying to use Fetchmail without success, I can set it up to collect email and send it to one user, but can somebody please explain how to setup Fetchmail to collect the email from one account and distribute it to my virtual users. Any help Appreciated Thanks |
From: Gene H. <ghe...@wd...> - 2015-11-05 13:46:39
|
On Thursday 05 November 2015 07:56:54 General Traffic Ltd wrote: > Hi all > > > > Can somebody please help. > > > > I have setup Postfix/Dovecot/Spamassassin with virtual users, but I > need to retrieve emails from my ISP. > > > > I am trying to use Fetchmail without success, I can set it up to > collect email and send it to one user, but can somebody please explain > how to setup Fetchmail to collect the email from one account and > distribute it to my virtual users. > > > > Any help Appreciated I have only 2 or 3 virtual users here, but procmail seems to handle that chore with alacrity. By using procmail for fetchmail's MTA, it is procmail that runs the incoming mail thru the clamav and spamassassin filters, then there isn't a huge practical limit, certainly well into the hundreds, perhaps thousands of virtual email accounts that it can deliver the individual mail to in /var/spool/mail. File locking considerations need to be addressed of course but thats a solvable problem. > > > Thanks > > ---------------------------------------------------------------------- >-------- _______________________________________________ > Fetchmail-users mailing list > Fet...@li... > https://lists.sourceforge.net/lists/listinfo/fetchmail-users Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> |
From: Gene H. <ghe...@wd...> - 2015-11-05 14:27:06
|
On Thursday 05 November 2015 09:16:12 General Traffic Ltd wrote: > Thanks for the help Gene, > > I have tried procmail also but I am new to this and was unable to get > that to work also, cant seem to get that to work with virtual users > either. Back on the list, but when I get a chance to come up for air, I'll show you some of my "recipes'. Right now I have a wife that tore up a knee yesterday, and the local radio station is off the air, and thats one of the things "I do" as a dying breed, at 81 yo, I still fix things. So much of the day is shot before I can take a lot of time with this. If someone else can help this gentleman, feel froggy and jump right in. > -----Original Message----- > From: Gene Heskett [mailto:ghe...@wd...] > Sent: 05 November 2015 13:46 > To: fet...@li... > Subject: Re: [Fetchmail-users] Please help with multiple users > > On Thursday 05 November 2015 07:56:54 General Traffic Ltd wrote: > > Hi all > > > > > > > > Can somebody please help. > > > > > > > > I have setup Postfix/Dovecot/Spamassassin with virtual users, but I > > need to retrieve emails from my ISP. > > > > > > > > I am trying to use Fetchmail without success, I can set it up to > > collect email and send it to one user, but can somebody please > > explain how to setup Fetchmail to collect the email from one account > > and distribute it to my virtual users. > > > > > > > > Any help Appreciated > > I have only 2 or 3 virtual users here, but procmail seems to handle > that chore with alacrity. > > By using procmail for fetchmail's MTA, it is procmail that runs the > incoming mail thru the clamav and spamassassin filters, then there > isn't a huge practical limit, certainly well into the hundreds, > perhaps thousands of virtual email accounts that it can deliver the > individual mail to in /var/spool/mail. File locking considerations > need to be addressed of course but thats a solvable problem. > > > Thanks > > > > -------------------------------------------------------------------- > >-- -------- _______________________________________________ > > Fetchmail-users mailing list > > Fet...@li... > > https://lists.sourceforge.net/lists/listinfo/fetchmail-users > > Cheers, Gene Heskett > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author) > Genes Web page <http://geneslinuxbox.net:6309/gene> > > ---------------------------------------------------------------------- >------ -- > _______________________________________________ > Fetchmail-users mailing list > Fet...@li... > https://lists.sourceforge.net/lists/listinfo/fetchmail-users Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> |
From: Jerry <je...@se...> - 2015-11-05 19:38:07
|
On Thu, 5 Nov 2015 12:56:54 -0000, General Traffic Ltd stated: > I have setup Postfix/Dovecot/Spamassassin with virtual users, but I need to > retrieve emails from my ISP. > > I am trying to use Fetchmail without success, I can set it up to collect > email and send it to one user, but can somebody please explain how to setup > Fetchmail to collect the email from one account and distribute it to my > virtual users. I have numerous "virtual" users with a Postfix/Dovecot/ setup that utilizes fetchmail to gather the mail from several ISPs. In fact, I only use "virtual" users on my system. Now, I assume that you have fetchmail deliver the mail to Postfix. Postfix should then deliver the mail to Dovecot. Dovecot will deliver each piece of mail to the users default mailbox unless you set up "sieve" ti filter the mail. That is how I handle it. Sieve is way easier to use, and more powerful than procmail. It is also supported. If you post some actual examples, I will be happy to show you how to configure it. -- Jerry |
From: General T. L. <ad...@ge...> - 2015-11-06 09:39:34
|
Hi Jerry I have sieve setup, could you please tell me how to pass mail from fetchmail to postfix. I have tried sending all mail to the postfix user but that just sits in postfix mail folder. thanks -----Original Message----- From: Jerry [mailto:je...@se...] Sent: 05 November 2015 19:26 To: Fet...@li... Subject: Re: [Fetchmail-users] Please help with multiple users On Thu, 5 Nov 2015 12:56:54 -0000, General Traffic Ltd stated: > I have setup Postfix/Dovecot/Spamassassin with virtual users, but I > need to retrieve emails from my ISP. > > I am trying to use Fetchmail without success, I can set it up to > collect email and send it to one user, but can somebody please explain > how to setup Fetchmail to collect the email from one account and > distribute it to my virtual users. I have numerous "virtual" users with a Postfix/Dovecot/ setup that utilizes fetchmail to gather the mail from several ISPs. In fact, I only use "virtual" users on my system. Now, I assume that you have fetchmail deliver the mail to Postfix. Postfix should then deliver the mail to Dovecot. Dovecot will deliver each piece of mail to the users default mailbox unless you set up "sieve" ti filter the mail. That is how I handle it. Sieve is way easier to use, and more powerful than procmail. It is also supported. If you post some actual examples, I will be happy to show you how to configure it. -- Jerry ---------------------------------------------------------------------------- -- _______________________________________________ Fetchmail-users mailing list Fet...@li... https://lists.sourceforge.net/lists/listinfo/fetchmail-users |
From: Jerry <je...@se...> - 2015-11-06 16:06:00
|
On Fri, 6 Nov 2015 09:39:15 -0000, General Traffic Ltd stated: > I have sieve setup, could you please tell me how to pass mail from fetchmail > to postfix. You need to post the output of "postconf -n" Specify -nf to fold long lines for human readability (Postfix 2.9 and later) Also, the pertinent lines in the master.cf that pertain to dovecot. -- Jerry |
From: General T. L. <ad...@ge...> - 2015-11-06 16:41:35
|
Heres the output of postconf -n: alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 delay_warning_time = 4 disable_vrfy_command = yes dovecot_destination_recipient_limit = 1 html_directory = no mailbox_size_limit = 0 mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man masquerade_domains = mydomain.co.uk message_size_limit = 300000000 mydomain = mydomain.co.uk myhostname = imap.mydomain.co.uk mynetworks = $config_directory/mynetworks newaliases_path = /usr/bin/newaliases.postfix notify_classes = bounce, 2bounce, delay, policy, protocol, resource, software recipient_delimiter = + relay_domains = proxy:mysql:/etc/postfix/mysql-relay_domains_maps.cf resolve_numeric_domain = yes sender_bcc_maps = hash:/etc/postfix/bcc sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache smtp_use_tls = yes smtpd_client_connection_rate_limit = 20 smtpd_client_restrictions = reject_non_fqdn_recipient reject_unknown_recipient_domain permit_mynetworks permit_inet_interfaces smtpd_data_restrictions = reject_unauth_pipelining smtpd_error_sleep_time = 10s smtpd_hard_error_limit = 10 smtpd_helo_required = yes smtpd_recipient_limit = 200 smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination reject_non_fqdn_sender reject_non_fqdn_recipient reject_unknown_recipient_domain permit_inet_interfaces smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_soft_error_limit = 5 smtpd_tls_cert_file = /etc/pki/tls/certs/mydomain.co.uk.crt smtpd_tls_key_file = /etc/pki/tls/private/mydomain.co.uk.key smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_security_level = may smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes tls_random_source = dev:/dev/urandom transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 550 virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_alias_maps.cf,regexp:/etc/postfix/vir tual_regexp virtual_gid_maps = static:12 virtual_mailbox_base = /home/vmail virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains_maps.cf virtual_mailbox_limit = 310000000 virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf virtual_minimum_uid = 101 virtual_transport = dovecot virtual_uid_maps = static:101 And the lines (I hope) for Dovecot: # Dovecot LDA dovecot unix - n n - - pipe flags=DRhu user=vmail:mail argv=/usr/libexec/dovecot/deliver -d ${recipient} # Thanks -----Original Message----- From: Jerry [mailto:je...@se...] Sent: 06 November 2015 16:06 To: Fet...@li... Subject: Re: [Fetchmail-users] Please help with multiple users On Fri, 6 Nov 2015 09:39:15 -0000, General Traffic Ltd stated: > I have sieve setup, could you please tell me how to pass mail from > fetchmail to postfix. You need to post the output of "postconf -n" Specify -nf to fold long lines for human readability (Postfix 2.9 and later) Also, the pertinent lines in the master.cf that pertain to dovecot. -- Jerry ---------------------------------------------------------------------------- -- _______________________________________________ Fetchmail-users mailing list Fet...@li... https://lists.sourceforge.net/lists/listinfo/fetchmail-users |
From: Carlos E. R. <car...@op...> - 2015-11-06 10:09:02
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2015-11-06 10:39, General Traffic Ltd wrote: > Hi Jerry > > I have sieve setup, could you please tell me how to pass mail from > fetchmail to postfix. > > I have tried sending all mail to the postfix user but that just > sits in postfix mail folder. poll SERVER with proto imap timeout 50, and tracepolls user REMOTE, with password PASS, is LOCALUSER here a rule of that sort in fetchmail hands mail over to the local MTA, which in my case is postfix. Of course, the above is for single user. What postfix does with it, is another issue. By default it will sit under /var/spool/mail/, on *SUSE at least. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlY8fDUACgkQja8UbcUWM1xFHgD+K6C6DUDPIguY35YqFcGtLT2R Zr/VxW6OG3FSE3Z8wxMA/1N5PdeEbTM011UlmvYGolJdlJZb4zoHOrwIUjr9R0Gv =AQRY -----END PGP SIGNATURE----- |
From: Gene H. <ghe...@wd...> - 2015-11-06 14:04:06
|
On Friday 06 November 2015 05:08:53 Carlos E. R. wrote: > On 2015-11-06 10:39, General Traffic Ltd wrote: > > Hi Jerry > > > > I have sieve setup, could you please tell me how to pass mail from > > fetchmail to postfix. > > > > I have tried sending all mail to the postfix user but that just > > sits in postfix mail folder. > > poll SERVER with proto imap timeout 50, and tracepolls > user REMOTE, with password PASS, is LOCALUSER here > > a rule of that sort in fetchmail hands mail over to the local MTA, > which in my case is postfix. > > Of course, the above is for single user. > > What postfix does with it, is another issue. By default it will sit > under /var/spool/mail/, on *SUSE at least. From there, it is generally up to the email agent to fetch it from there & sort it to the proper locations. Since you're using dovecot and sieve, its generally a matter of writing the sort rules. Here, I am basically single user, so I wrote a script to oversee inotifywait, which is watching /var/spool/mail, and when a file is closed, it takes the filename returned by inotifywait, and if its one that is legit mail for me, sends kmail a get the mail message over dbus or whatever interprocess utility is used on your system. kmail then goes and gets it, sorting it to the proper location. So literally all I have to do is read, and if I can help, reply to the message. Everything else is 100% automatic here. As it should be. The only non-viri or non-spam rule in my .procmailrc sorts and routes messages from a niece in NYS, putting them directly in the kmail folder dedicated to that. I should change that, and let kmail do that sorting as it is very occasionally confused when it finds a message that is not in its index for that folder. But its not often enough to bug me. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> |
From: Matthias A. <mat...@gm...> - 2015-11-09 22:47:04
|
Am 05.11.2015 um 13:56 schrieb General Traffic Ltd: > Hi all > > > > Can somebody please help. > > > > I have setup Postfix/Dovecot/Spamassassin with virtual users, but I need to > retrieve emails from my ISP. > > > > I am trying to use Fetchmail without success, I can set it up to collect > email and send it to one user, but can somebody please explain how to setup > Fetchmail to collect the email from one account and distribute it to my > virtual users. > > > > Any help Appreciated > > > > Thanks http://mandree.home.pages.de/mail/multidrop If that works on your ISP's end, we can discuss how to sort the incoming users apart. I propose you start reading the fetchmail manual page, check for multidrop, and then get back here with your questions and a sample header of a test message you've sent to one of your virtual users. |
From: Carlos E. R. <car...@op...> - 2015-11-10 12:05:26
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Resending. Apparently it bounced. On 2015-11-06 11:27, General Traffic Ltd wrote: > Thanks for helping Carlos, > > I can pass mail to a single user but the problem I have is, All > mail is sent to my ISP which I am using as a Backup MX temporarily, > I then collect it and I need to send to my Virtual users. > > But I don't know how to pick up the mail with fetchmail and > distribute it to multiple users. One step at a time :-) Typically, you fetch the mail, get it into postfix, then you create filters (procmail, sieve, whatever) to distribute it to the proper people. Or you use "multidrop-mode" - see "man fetchmail", there are examples. It is not my usecase, so I can't give you more specifics. If you post here the headers of some of that email, perhaps people here might be able to tell you what to use to create a filter. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlZB3XoACgkQtTMYHG2NR9V8YwCfTJvniaP7stY2/gdCPWu9en13 X+kAnRk30UxW6gUbjnNEc8QfteH0XsDm =Z/78 -----END PGP SIGNATURE----- |