Re: majordomo + postifx + virtual domains + mysql... close

2016-07-06 Thread postmas...@quantum-radio.net
Well, I got that bit working easily enough, but I’ve given up on the whole thing. I can find no way of getting it all to work together. Unless I use the standard /etc/aliases file, which I can’t do, I can’t get it to work. It has to be able to run /usr/local/majordomo-1.94.5/wrapper majordomo

Address rewriting

2016-07-06 Thread Robert Fitzpatrick
I have been using canonical_maps for some time to map local addresses, but that doesn't seem to work for incoming mail. The message is coming from another Postfix server with the sender specified with the hostname of the machine Jul 6 08:35:34 mx1 postfix/smtpd[54573]: NOQUEUE: reject: RCP

Re: Address rewriting

2016-07-06 Thread Wietse Venema
Robert Fitzpatrick: > I have been using canonical_maps for some time to map local addresses, > but that doesn't seem to work for incoming mail. The message is coming > from another Postfix server with the sender specified with the hostname > of the machine See http://www.postfix.org/postcon

check_recipient_access with ldap

2016-07-06 Thread Il Neofita
Hi I would like to transform this line check_recipient_access hash:/etc/postfix/hash_protectedDestinations /etc/postfix/ldap_protectedDestinationsHash testlistldap@ilneofita auth_testlistldap_only reject_list_only with this line check_recipient_access ldap:/etc/postfix/ldap_protectedDestinations

Re: check_recipient_access with ldap

2016-07-06 Thread Viktor Dukhovni
On Wed, Jul 06, 2016 at 09:44:19AM -0400, Il Neofita wrote: > I would like to transform this line > check_recipient_access hash:/etc/postfix/hash_protectedDestinations > > /etc/postfix/ldap_protectedDestinationsHash: > testlistldap@ilneofita auth_testlistldap_only reject_list_only > > with t

Re: majordomo + postifx + virtual domains + mysql... close

2016-07-06 Thread postmas...@quantum-radio.net
@Norton Allen Thanks for that info. I thought it would do it. And, I was happy to hear that someone else has actually got it working :-) I have this now in main.cf alias_maps= hash:/etc/aliases alias_database= hash:/etc/aliases All I have in the aliases file now is the majordomo aliases and

Re: check_recipient_access with ldap

2016-07-06 Thread Il Neofita
On Wed, Jul 6, 2016 at 10:43 AM, Viktor Dukhovni wrote: > On Wed, Jul 06, 2016 at 09:44:19AM -0400, Il Neofita wrote: > > > I would like to transform this line > > check_recipient_access hash:/etc/postfix/hash_protectedDestinations > > > > /etc/postfix/ldap_protectedDestinationsHash: > > test

Re: Address rewriting

2016-07-06 Thread Robert Fitzpatrick
Wietse Venema wrote: Robert Fitzpatrick: I have been using canonical_maps for some time to map local addresses, but that doesn't seem to work for incoming mail. The message is coming from another Postfix server with the sender specified with the hostname of the machine See http://www.postf

Re: Address rewriting

2016-07-06 Thread Robert Fitzpatrick
Wietse Venema wrote: Robert Fitzpatrick: I have been using canonical_maps for some time to map local addresses, but that doesn't seem to work for incoming mail. The message is coming from another Postfix server with the sender specified with the hostname of the machine See http://www.postf

Re: majordomo + postifx + virtual domains + mysql... close

2016-07-06 Thread Wietse Venema
postmas...@quantum-radio.net: mail for zeus.quantum-radio.net loops back to myself You need to add zeus.quantum-radio.net to the mydestination setting. http://www.postfix.org/BASIC_CONFIGURATION_README.html#mydestination Wietse

Re: majordomo + postifx + virtual domains + mysql... close

2016-07-06 Thread Norton Allen
On 7/6/2016 11:10 AM, postmas...@quantum-radio.net wrote: @Norton Allen Thanks for that info. I thought it would do it. And, I was happy to hear that someone else has actually got it working :-) I have this now in main.cf alias_maps= hash:/etc/aliases alias_database= hash:/etc/aliases All

Re: Address rewriting

2016-07-06 Thread Wietse Venema
Robert Fitzpatrick: > local_header_rewrite_clients = static:all > > I'm looking for a way to rewrite by name from any client. My canonical > maps work great for mynetworks, would like to apply the same type > rewrite to any message... The above setting should enable canonical mapping for all em

Somehow hacked?

2016-07-06 Thread SH Development
Here’s a strange one. In my normal routine of glancing at the maillog file, and subsequently the queue, I noticed several hundred emails queued up, all with some bogus email variation on one of my domains. So for instance: abj...@mydomain.com lwoei...@mydomain.com And so forth. I traced it b

Re: Somehow hacked?

2016-07-06 Thread Ben Greenfield
> On Jul 6, 2016, at 1:21 PM, SH Development > wrote: > > Here’s a strange one. In my normal routine of glancing at the maillog file, > and subsequently the queue, I noticed several hundred emails queued up, all > with some bogus email variation on one of my domains. So for instance: > > a

Re: Somehow hacked?

2016-07-06 Thread Michael D. Sofka
On 07/06/2016 01:35 PM, Ben Greenfield wrote: On Jul 6, 2016, at 1:21 PM, SH Development wrote: Here’s a strange one. In my normal routine of glancing at the maillog file, and subsequently the queue, I noticed several hundred emails queued up, all with some bogus email variation on one of

Re: Address rewriting

2016-07-06 Thread Robert Fitzpatrick
Wietse Venema wrote: Robert Fitzpatrick: local_header_rewrite_clients = static:all I'm looking for a way to rewrite by name from any client. My canonical maps work great for mynetworks, would like to apply the same type rewrite to any message... The above setting should enable canonical mappi

Re: Somehow hacked?

2016-07-06 Thread SH Development
> On Jul 6, 2016, at 12:50 PM, Michael D. Sofka wrote: > > On 07/06/2016 01:35 PM, Ben Greenfield wrote: >> >>> On Jul 6, 2016, at 1:21 PM, SH Development >>> wrote: >>> >>> Here’s a strange one. In my normal routine of glancing at the maillog >>> file, and subsequently the queue, I notice

Re: Somehow hacked?

2016-07-06 Thread SH Development
Wouldn’t restarting dovecot/postfix clear the connection and force the account to re-authenticate? Because I did that… Jeff > On Jul 6, 2016, at 12:35 PM, Ben Greenfield wrote: > > >> On Jul 6, 2016, at 1:21 PM, SH Development >> wrote: >> >> Here’s a strange one. In my normal routine o

Re: Somehow hacked?

2016-07-06 Thread SH Development
Emails were not from authenticated account, near as I can tell. In fact, I cannot find anywhere in the logs where that IP logged in. RBL shows the IP as blocked on multiple sites. MX Toolbox shows we are NOT an open relay. Is this what you’re asking for? mynetworks = 192.0.0.0/8 message_size_

Re: Somehow hacked?

2016-07-06 Thread Benny Pedersen
On 2016-07-06 20:11, SH Development wrote: MX Toolbox shows we are NOT an open relay. mynetworks = 192.0.0.0/8 openrelay ! suggest fix is to NOT have mynetworks in main.cf eq let it be default, or setup properly

Re: Somehow hacked?

2016-07-06 Thread SH Development
Ah…and maybe the light bulb just clicked on. Turns out the IP in question that is able to get through starts with 192 which is why it is the only one able to do this, maybe? Jeff > On Jul 6, 2016, at 1:19 PM, Benny Pedersen wrote: > > On 2016-07-06 20:11, SH Development wrote: > >> MX Toolbo

Re: Somehow hacked?

2016-07-06 Thread Viktor Dukhovni
On Wed, Jul 06, 2016 at 08:19:33PM +0200, Benny Pedersen wrote: > On 2016-07-06 20:11, SH Development wrote: > > >MX Toolbox shows we are NOT an open relay. > > >mynetworks = 192.0.0.0/8 > > openrelay ! Specifically, the correct RFC1918 address block is: 192.168.0.0/16 The OP has posted n

Re: Address rewriting

2016-07-06 Thread Viktor Dukhovni
On Wed, Jul 06, 2016 at 02:10:29PM -0400, Robert Fitzpatrick wrote: > local_header_rewrite_clients = static:all > But from the logs > > Jul 6 13:44:39 mx1 postfix/smtpd[74447]: NOQUEUE: reject: RCPT from > mail-dm3nam03on0135.outbound.protection.outlook.com[104.47.41.135]: 450 > 4.1.8 : Send

Re: Somehow hacked?

2016-07-06 Thread Benny Pedersen
On 2016-07-06 20:25, SH Development wrote: Ah…and maybe the light bulb just clicked on. Turns out the IP in question that is able to get through starts with 192 which is why it is the only one able to do this, maybe? why ask more ? postconf -d | grep mynetworks postconf -n | grep mynetworks

Re: Address rewriting

2016-07-06 Thread Wietse Venema
Robert Fitzpatrick: > Jul 6 13:44:39 mx1 postfix/smtpd[74447]: NOQUEUE: reject: RCPT from > mail-dm3nam03on0135.outbound.protection.outlook.com[104.47.41.135]: 450 > 4.1.8 : Sender address rejected: Domain not > found; from= to= proto=ESMTP > helo= This error message has nothing to do with he

Re: Somehow hacked?

2016-07-06 Thread D'Arcy J.M. Cain
On Wed, 6 Jul 2016 12:21:52 -0500 SH Development wrote: > Here’s a strange one. In my normal routine of glancing at the > maillog file, and subsequently the queue, I noticed several hundred > emails queued up, all with some bogus email variation on one of my > domains. So for instance: > > abj.

Re: Somehow hacked?

2016-07-06 Thread Bill Cole
On 6 Jul 2016, at 14:25, SH Development wrote: Ah…and maybe the light bulb just clicked on. Turns out the IP in question that is able to get through starts with 192 which is why it is the only one able to do this, maybe? Yeah, sure, maybe. Probably. Maybe there's something else involved. A

Re: Somehow hacked?

2016-07-06 Thread /dev/rob0
On Wed, Jul 06, 2016 at 01:10:28PM -0500, SH Development wrote: > What I’m finding difficult is the lack of information in my logs > about this. I did a search on the message ID of one of the > messages. It shows multiple attempts of trying to deliver the > message (and nobody’s accepting), bu

Time based config options

2016-07-06 Thread Alex Bryant
Hi, Was looking for the best strategy for implementing time based config file options. For instance, implement the following from 8-9:00 am and 4-5:00 pm only: virtual_alias_maps = pcre:/etc/postfix/virtual_alias_maps_regex_1 Thank you, -A

Re: Time based config options

2016-07-06 Thread Patrick Ben Koetter
* Alex Bryant : > Was looking for the best strategy for implementing time based config file > options. > > > For instance, implement the following from 8-9:00 am and 4-5:00 pm only: > > virtual_alias_maps = pcre:/etc/postfix/virtual_alias_maps_regex_1 Create a cronjob. Let it execute somehing a

Re: AW: Possible Bug ? postfix 3.1.0-3 fails on mysql table lookup

2016-07-06 Thread John Fawcett
On 07/04/2016 09:58 PM, j...@conductive.de wrote: > > Quoting John Fawcett : >> I can propose a code submission to add stored procedure support (based >> on the proof of concept code from 2008), but the biggest part will be >> doing the testing and non regression testing not the actual coding. >> >

Re: AW: Possible Bug ? postfix 3.1.0-3 fails on mysql table lookup

2016-07-06 Thread Wietse Venema
John Fawcett: > here is my proposed submission to add mysql stored procedure support to > Postfix. As per Wietse's comments in the following thread Thanks much. I'll examine it in the crumbs of available time. Wietse

Re: DNS IP <-> domain <-> IP2 unblocking

2016-07-06 Thread Homer Wilson Smith
On Fri, 3 Jun 2016, Noel Jones wrote: On 6/3/2016 6:39 PM, Homer Wilson Smith wrote: The following main.cf, thanks to Noel, blocks mail whose DNS is misconfigured as follows. 1.) IP -> nothing 2.) IP -> domain -> nothing 3.) IP -> domain -> IP2 It accepts only mail