Restricting mail relaying

2016-10-27 Thread Mohamed Lrhazi
Been a long time since I used Postfix, sorry for this basic question. I have a Postfix server used internally by servers in the network to send out mail. Itself relays all mail to an upstream server. How can I reject mail from given clients (list of IPs), but only if destined for domains other

Re: Stripping Received: headers

2016-10-27 Thread Den1
Well, here it goes. My postconf -n looks like this: alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no body_checks = regexp:/etc/postfix/bodychecks bounce_template_file = /etc/postfix/bounce.cf broken_sasl_auth_clients = yes config_directory = /etc/postfix

Re: Stripping Received: headers

2016-10-27 Thread Wietse Venema
Den1: > >>Do you have receive_override_options set in main.cf? > > Yes, I do, but I disabled them for testing purposes. > > >>What's "postconf -n" show? > >>what's "postconf -Mf" show? > > Would you like me to post the entire output of postconf -n and postconf -Mf? > Won't your list ban me

Re: Stripping Received: headers

2016-10-27 Thread Den1
>>Do you have receive_override_options set in main.cf? Yes, I do, but I disabled them for testing purposes. >>What's "postconf -n" show? >>what's "postconf -Mf" show? Would you like me to post the entire output of postconf -n and postconf -Mf? Won't your list ban me for flooding because of it

Re: Stripping Received: headers

2016-10-27 Thread Noel Jones
On 10/27/2016 1:57 PM, Den1 wrote: > my apologies to post here again as the thread is quite old but I am having аn > absolutely identical issue. I cannot seem to remove any headers at all no > matter what I do. > > I tried setting this in master.cf: > submission inet n - - -

Re: Stripping Received: headers

2016-10-27 Thread Den1
my apologies to post here again as the thread is quite old but I am having аn absolutely identical issue. I cannot seem to remove any headers at all no matter what I do. I tried setting this in master.cf: submission inet n - - - - smtpd -o

Re: "always_bcc" for multiple recipients (via alias) and "recipient_bcc_maps" don't work

2016-10-27 Thread linuxc128
I was finally able to solve this. Regarding the first issue ("recipient_bcc_maps") I added an alias for my mail addresses named "rcpbcc" to /etc/postfix/recipient_bcc_maps and then added "rcp...@myserver.com addres...@gmail.com, addres...@hotmail.com" to /etc/postfix/vmail_aliases. For solving

Re: "always_bcc" for multiple recipients (via alias) and "recipient_bcc_maps" don't work

2016-10-27 Thread Ralph Seichter
On 27.10.2016 14:18, linuxc128 wrote: > Is there any other option in my configuration which might be > responsible for making postfix append "@myserver.com" instead > of looking up the alias? http://www.postfix.org/ADDRESS_REWRITING_README.html should get you started. > Why did it work with my

Re: "always_bcc" for multiple recipients (via alias) and "recipient_bcc_maps" don't work

2016-10-27 Thread linuxc128
Yes, I understand that of course. However, could anyone give me a hint why "alwaysbcc" gets parsed as "always...@localhost.com"? Is there any other option in my configuration which might be responsible for making postfix append "@myserver.com" instead of looking up the alias? Why did it work

Re: "always_bcc" for multiple recipients (via alias) and "recipient_bcc_maps" don't work

2016-10-27 Thread Wietse Venema
linuxc128: > Would you mind telling me about other mistakes you noticed in my config? Unfortunately, I don't have time for that. Wietse

Re: "always_bcc" for multiple recipients (via alias) and "recipient_bcc_maps" don't work

2016-10-27 Thread linuxc128
linuxc128: > Hello, > > I've set up a mail server on my VPS, which is running CentOS 7. Previously > I > used Ubuntu for my VPS, but even after having spent endless hours of > configuration efforts I wasn't able to get SMTP-SASL authentication > working > and an admin of my VPS hosting company

Re: "always_bcc" for multiple recipients (via alias) and "recipient_bcc_maps" don't work

2016-10-27 Thread Wietse Venema
linuxc128: > Hello, > > I've set up a mail server on my VPS, which is running CentOS 7. Previously I > used Ubuntu for my VPS, but even after having spent endless hours of > configuration efforts I wasn't able to get SMTP-SASL authentication working > and an admin of my VPS hosting company also