Re: [CentOS] Postfix Question - CentOS 6
On 9/9/2011 3:15 AM, Nicolas Thierry-Mieg wrote: John Hinton wrote: /var/spool/postfix/private/auth It seems this must be owned by postfix but it was owned by root. So, can somebody check to see if this is there in a CentOS 6 Postfix install where Amavis is not installed? And if so, what are the default permissions? maybe try rpm -qf /var/spool/postfix/private/auth to see if it belongs to an rpm. You could then rpm -V that package if it exists. OK... I found it. In Dovecot master.conf, I enabled smtp-auth. Under that, it seems you must set the user to postfix or each time you restart dovecot the auth file is recreated and is owned by root... resulting in the failure. I looked for the file earlier and it was not there. It seems to have appeared due to enabling smtp-auth, but I did make other edits before restarting the service. Inside of service auth I have the following: # Postfix smtp-auth unix_listener /var/spool/postfix/private/auth { mode = 0666 user = postfix } I am considering adding group = postfix as well as the file is now group root. Thanks, John Hinton ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Postfix Question - CentOS 6
John Hinton wrote: /var/spool/postfix/private/auth It seems this must be owned by postfix but it was owned by root. So, can somebody check to see if this is there in a CentOS 6 Postfix install where Amavis is not installed? And if so, what are the default permissions? maybe try rpm -qf /var/spool/postfix/private/auth to see if it belongs to an rpm. You could then rpm -V that package if it exists. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Postfix Question - CentOS 6
I'm trying to figure out if this is a bug... I'm running Postfix with Dovecot Authentication and have Amavisd-new as the front end. I fought with the install and in particular being able to send mail Auth failed. Hours of looking through all the config files yielded nothing... so I started Googling about. I finally found a comment at the bottom of a blog to check permissions on: /var/spool/postfix/private/auth It seems this must be owned by postfix but it was owned by root. So, can somebody check to see if this is there in a CentOS 6 Postfix install where Amavis is not installed? And if so, what are the default permissions? Thanks, John Hinton ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Postfix Question - CentOS 6
On 09/09/2011 03:10 PM, John Hinton wrote: So, can somebody check to see if this is there in a CentOS 6 Postfix install where Amavis is not installed? And if so, what are the default permissions? Not present on a clean C6 install. Mind you, it's also not present after installing dovecot and amavisd-new (from epel), so I'm convinced it's part of a package per-se. According to the postfix SASL config (http://www.postfix.org/SASL_README.html), it's configured in dovecot.conf. Maybe take a look at what http://wiki.dovecot.org/HowTo/PostfixAndDovecotSASL says about it? Steve ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Postfix Question - CentOS 6
On 9/9/2011 1:28 AM, Steve Walsh wrote: On 09/09/2011 03:10 PM, John Hinton wrote: So, can somebody check to see if this is there in a CentOS 6 Postfix install where Amavis is not installed? And if so, what are the default permissions? Not present on a clean C6 install. Mind you, it's also not present after installing dovecot and amavisd-new (from epel), so I'm convinced it's part of a package per-se. According to the postfix SASL config (http://www.postfix.org/SASL_README.html), it's configured in dovecot.conf. Maybe take a look at what http://wiki.dovecot.org/HowTo/PostfixAndDovecotSASL says about it? Steve Thanks Steve... It was the epel amavis package. Also, I'll be doing another server like this in the next week or so and will try to see what/when this gets created. It might not get created until some particular service is started. I am running SSL connections and I think that plays into it. So far, that file has 0 bytes along with a bunch of others there. And, good to know that at least it appears that the CentOS packages are all fine. And now to go read the wiki! :) John Hinton ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Postfix question: How to reject email with a certain subject header
On Wed, 17 Jun 2009, John R Pierce wrote: nate wrote: Gilbert Sebenste wrote: Hello everyone, Occasionally I get emails which have a subject header of Rejected posting to Blah, from a listserv I am on. Without going into a 10 page diatribe of why, I'd like to reject these automatically, sending them to /dev/null. I used to run Sendmail and that was pretty easy to do. How can I do this under Postfix under CentOS 5.3? Do you want to reject them or eat them and send them to /dev/null ? If you want to reject them something like this would work: header_checks = regexp:/etc/postfix/regexp_table and in /etc/postfix/regexp_table something like: /^Subject: This is the subject I want to reject REJECT 554 Custom rejection message The problem with that approach is that its global to the server.I dislike putting filtering rules like that in the system, and prefer to do them on a per user basis, hence my postmailrc suggestion (except I don't know if CentOS uses postmail as the delivery agent for postfix) Hey Filipe, John, Michael, Thanks for your help on this. I do want a global rejection in this case, so this works out well. Thanks so much everyone!!! Gilbert *** Gilbert Sebenste (My opinions only!) ** *** ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Postfix question: How to reject email with a certain subject header
Hello everyone, Occasionally I get emails which have a subject header of Rejected posting to Blah, from a listserv I am on. Without going into a 10 page diatribe of why, I'd like to reject these automatically, sending them to /dev/null. I used to run Sendmail and that was pretty easy to do. How can I do this under Postfix under CentOS 5.3? Any help is appreciated. Thanks! Gilbert *** Gilbert Sebenste (My opinions only!) ** *** ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Postfix question: How to reject email with a certain subject header
Gilbert Sebenste wrote: Hello everyone, Occasionally I get emails which have a subject header of Rejected posting to Blah, from a listserv I am on. Without going into a 10 page diatribe of why, I'd like to reject these automatically, sending them to /dev/null. I used to run Sendmail and that was pretty easy to do. How can I do this under Postfix under CentOS 5.3? Do you want to reject them or eat them and send them to /dev/null ? If you want to reject them something like this would work: header_checks = regexp:/etc/postfix/regexp_table and in /etc/postfix/regexp_table something like: /^Subject: This is the subject I want to reject REJECT 554 Custom rejection message nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Postfix question: How to reject email with a certain subject header
Gilbert Sebenste wrote: Hello everyone, Occasionally I get emails which have a subject header of Rejected posting to Blah, from a listserv I am on. Without going into a 10 page diatribe of why, I'd like to reject these automatically, sending them to /dev/null. I used to run Sendmail and that was pretty easy to do. How can I do this under Postfix under CentOS 5.3? Any help is appreciated. Thanks! are you using procmail as the delivery agent? if so, you'd add something like the following to your ~/.procmailrc ... :0: * ^Subject:.*Rejected posting to Blah.* /dev/null ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Postfix question: How to reject email with a certain subject header
Hi, On Wed, Jun 17, 2009 at 19:48, natecen...@linuxpowered.net wrote: header_checks = regexp:/etc/postfix/regexp_table and in /etc/postfix/regexp_table something like: /^Subject: This is the subject I want to reject REJECT 554 Custom rejection message You missed a / to close the regexp... If you want to discard the message you can use DISCARD instead of REJECT. See the ACTIONS section of man header_checks or the manpage here: http://www.postfix.org/header_checks.5.html It should be something like: /^Subject: Rejected posting to / DISCARD Delete returns from listserv The Delete returns from listserv message will appear on your logs, so it will be easier to see which (or how many!) messages are being discarded. HTH, Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Postfix question: How to reject email with a certain subject header
Hello Nate, On Wed, 17 Jun 2009, nate wrote: Do you want to reject them or eat them and send them to /dev/null ? Eat them and send them to /dev/null. If you want to reject them something like this would work: header_checks = regexp:/etc/postfix/regexp_table and in /etc/postfix/regexp_table something like: /^Subject: This is the subject I want to reject REJECT 554 Custom rejection message Yes, but I'd rather eat them and send them to /dev/null. Any idea on how to do that? *** Gilbert Sebenste (My opinions only!) ** Staff Meteorologist, Northern Illinois University E-mail: seben...@weather.admin.niu.edu *** web: http://weather.admin.niu.edu ** *** ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Postfix question: How to reject email with a certain subject header
nate wrote: Gilbert Sebenste wrote: Hello everyone, Occasionally I get emails which have a subject header of Rejected posting to Blah, from a listserv I am on. Without going into a 10 page diatribe of why, I'd like to reject these automatically, sending them to /dev/null. I used to run Sendmail and that was pretty easy to do. How can I do this under Postfix under CentOS 5.3? Do you want to reject them or eat them and send them to /dev/null ? If you want to reject them something like this would work: header_checks = regexp:/etc/postfix/regexp_table and in /etc/postfix/regexp_table something like: /^Subject: This is the subject I want to reject REJECT 554 Custom rejection message The problem with that approach is that its global to the server.I dislike putting filtering rules like that in the system, and prefer to do them on a per user basis, hence my postmailrc suggestion (except I don't know if CentOS uses postmail as the delivery agent for postfix) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Postfix Question
On Sat, 14 Jul 2007 23:15:51 +0200 Alexander Dalloz [EMAIL PROTECTED] took out a #2 pencil and scribbled: [EMAIL PROTECTED] schrieb: I've googled around and although I get a lot of hits about postfix smarthost authentication with ssl, I can not find out how to actually accomplish the task. I've read through smatterings of postings from Neophasis and the like searching for just the syntax and what file (I assume it's main.cf) I should be using; however, any smtpd_ lines I have tried result in postfix hanging and refusing to deliver mail. smtpd_* is the wrong configuration option. It applies to Postfix acting as server, while you want to configure Postfix being the client. So you have to read through man 5 postconf for smtp_ (smtp_tls_*) options. That confirms my stupidity. By making the attempt it was revealed I was heading down the wrong path. Thanks! The server I'm running postfix on is CentOS 4 (fully updated). Postfix version is 2.2.10-1.1.el4 (from rpm -qa). I have not had sufficient downtime to upgrade to CentOS 5. Should I do that? Sincerely For what a howto when you can read the manpage for postconf? Even each smarthost can be configured with different musts, so there can't be a globally valid setup guide. Alexander Because I'm stupid and it didn't click with me upon my first attempt at getting it to work after reading other mailing lists about what I was trying to accomplish. What you're saying makes perfect sense to me though. Long time no type. Happy to hear from you again! -- Alex White [EMAIL PROTECTED] Life is a prison, death is a release ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Postfix Question
[EMAIL PROTECTED] schrieb: I've googled around and although I get a lot of hits about postfix smarthost authentication with ssl, I can not find out how to actually accomplish the task. I've read through smatterings of postings from Neophasis and the like searching for just the syntax and what file (I assume it's main.cf) I should be using; however, any smtpd_ lines I have tried result in postfix hanging and refusing to deliver mail. smtpd_* is the wrong configuration option. It applies to Postfix acting as server, while you want to configure Postfix being the client. So you have to read through man 5 postconf for smtp_ (smtp_tls_*) options. I could simply cease using smarthost, but my ip address is dynamic (yes I know stop yelling at me I'm poor right now) so mail bounces to some domains if I don't use smarthost. The server I'm running postfix on is CentOS 4 (fully updated). Postfix version is 2.2.10-1.1.el4 (from rpm -qa). I have not had sufficient downtime to upgrade to CentOS 5. Should I do that? Sincerely For what a howto when you can read the manpage for postconf? Even each smarthost can be configured with different musts, so there can't be a globally valid setup guide. Alexander ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Postfix Question
[EMAIL PROTECTED] wrote: I've googled around and although I get a lot of hits about postfix smarthost authentication with ssl, I can not find out how to actually accomplish the task. I've read through smatterings of postings from Neophasis and the like searching for just the syntax and what file (I assume it's main.cf) I should be using; however, any smtpd_ lines I have tried result in postfix hanging and refusing to deliver mail. I could simply cease using smarthost, but my ip address is dynamic (yes I know stop yelling at me I'm poor right now) so mail bounces to some domains if I don't use smarthost. The server I'm running postfix on is CentOS 4 (fully updated). Postfix version is 2.2.10-1.1.el4 (from rpm -qa). I have not had sufficient downtime to upgrade to CentOS 5. Should I do that. Adam Shostack had a howto on how to accomplish this at one point. I suspect it will turn up if you google around for it. Best, ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos