RE: Reject domain but allow inbound for a local user

2015-03-18 Thread Inteq Solution - Dep. Tehnic
Small error: score USER_IN_WHITELIST 200 should have a negative score so make it score USER_IN_WHITELIST -200 Razvan Constantin +40.755.096.096 t...@inteq.ro -Original Message- From: Inteq Solution - Dep. Tehnic [mailto:t...@inteq.ro] Sent: Thursday, March 19, 2015 6:42 AM To

RE: Reject domain but allow inbound for a local user

2015-03-18 Thread Inteq Solution - Dep. Tehnic
Found an easier solution, for those interested. It is not directly connected to Postifx, but rather to SpamAssassin, if you use it. To recap what I wanted to achieve: I want to reject all email from *@bad-domain.org (external domain) reaching my users. One user on one of my domains wants to receiv

Re: routing externally forwarded mail differently than internally originated mail

2015-03-18 Thread Daniel Bromberg
On 3/18/2015 7:23 PM, Wietse Venema wrote: Daniel Bromberg: Greetings master postfixers, I am trying to solve a forwarding problem. I have two separate amavis instanceson my edge MX that each do spam-checking: one incoming (obvious), one outgoing (our users aren't too good about keeping their

Re: How to blackhole a specific outgoing address

2015-03-18 Thread Campbell McLeay
Yes, Postfix 2.6.6. Many thanks Wietse, that did the trick! Cheers, Campbell On 18 March 2015 at 23:12, Wietse Venema wrote: > Assuming you have Postfix 2.2 or later: > > /etc/postfix/main.cf: > transport_maps = hash:/etc/postfix/transport > > /etc/postfix/transport: > u...@example.com

Re: routing externally forwarded mail differently than internally originated mail

2015-03-18 Thread Wietse Venema
Daniel Bromberg: > Greetings master postfixers, > > I am trying to solve a forwarding problem. I have two separate amavis > instanceson my edge MX that each do spam-checking: one incoming > (obvious), one outgoing (our users aren't too good about keeping their > computers zombie-free). > > For

Re: How to blackhole a specific outgoing address

2015-03-18 Thread Wietse Venema
Assuming you have Postfix 2.2 or later: /etc/postfix/main.cf: transport_maps = hash:/etc/postfix/transport /etc/postfix/transport: u...@example.comdiscard: Use "postmap hash:/etc/postfix/transport" when the file is changed. Wietse

Re: TLS Error on local system

2015-03-18 Thread Viktor Dukhovni
On Wed, Mar 18, 2015 at 05:46:45PM -0400, Postfix User wrote: > The is the output from the "sendEmail" program: > > Mar 18 16:57:29 scorpio sendEmail[29407]: SUCCESS => Received: 220 2.0.0 > Ready to start TLS > Mar 18 16:57:29 scorpio sendEmail[29407]: ERROR => TLS setup failed: SSL > connect

routing externally forwarded mail differently than internally originated mail

2015-03-18 Thread Daniel Bromberg
Greetings master postfixers, I am trying to solve a forwarding problem. I have two separate amavis instanceson my edge MX that each do spam-checking: one incoming (obvious), one outgoing (our users aren't too good about keeping their computers zombie-free). For the particular case where mail

How to blackhole a specific outgoing address

2015-03-18 Thread Campbell McLeay
Hi, I'm trying to find a way to blackhole email sent to a particular recipient Background: We have an email-based ticketing system which replies with updates to the sender's address when a ticket is created. The origin of the emails that create these tickets is an automated system of a client, a

TLS Error on local system

2015-03-18 Thread Postfix User
I have a problem and I am not really sure what it is. I use the utility program "sendEmail" to relay mail in several different scripts I created. When I send to "Yahoo", everything goes fine. If I try and send through Postfix on my server, with the same configuration except for user name and passwo

Re: Strange behaviour of my multi-instance server

2015-03-18 Thread Wietse Venema
i...@itrezero.it: > if web client (a web application) connects to xxx.yyy.zzz.79 => emails are > sent through xxx.yyy.zzz.79 (instance 1), > > if it connects to xxx.yyy.zzz.80 => emails are sent through xxx.yyy.zzz.80 > (instance 2), Here you talk about the IP address that Postfix uses to recei

Re: Strange behaviour of my multi-instance server

2015-03-18 Thread Viktor Dukhovni
On Wed, Mar 18, 2015 at 08:26:44PM +0100, i...@itrezero.it wrote: > 421 4.7.0 [TS01] Messages from xxx.yyy.zzz.79 temporarily deferred due to > user complaints <-- from INSTANCE 1 IP address Sending such error response fragments out of context is a waste of everyone's time. Please post complete

Strange behaviour of my multi-instance server

2015-03-18 Thread info
Hello. I'm facing with a strange behaviour of my Postfix multi-instance server and I'll try. to explain. Every instance manages outbound emails from a specific IP. This is an example master.cf: -- /etc/postfix/master.cf (instance 1)-- smtp u

Re: How to allow each user on an Ubuntu server use his/her google email and password to send the email via google smtp?

2015-03-18 Thread Viktor Dukhovni
On Wed, Mar 18, 2015 at 11:31:40AM -0600, @lbutlr wrote: > Gmail does not restrict the from address in outgoing emails. In fact, when > my server is offline, i send admin warnings via gmail that are ?from? my > postmaster account. > > Your gmail account is in the headers, but most people will nev

Re: How to allow each user on an Ubuntu server use his/her google email and password to send the email via google smtp?

2015-03-18 Thread @lbutlr
On Mar 18, 2015, at 10:16, Viktor Dukhovni wrote: > Naturally they will want to authenticate the sending client, and > generally enforce the equivalent of the Postifx > reject_sender_login_mismatch feature (possibly allowing some > specially provisioned client credentials to send as multiple sende

Patch Postfix 3.1: sender_dependent_relayhost_maps defaults to rcpt_domain not relayhost

2015-03-18 Thread Viktor Dukhovni
On Wed, Mar 18, 2015 at 02:30:36AM -0700, ebberup wrote: > I found the possibility in the Postfix configuration > parameters:*sender_dependent_relayhost_maps (default: empty) Oops, my mistake, sorry! The documentation indeed promises that DUNNO behaves as you expect, and this is mostly implement

Re: Messagelabs rejects mails from my MTA - how to debug ?

2015-03-18 Thread Bill Cole
On 17 Mar 2015, at 8:35, Marek Salwerowicz wrote: Hi list, Yesterday I was informed by Users, that they can't send e-mails to one of the banking institutions (so it's a little 'urgent' in businesses manner). The mails are rejected by Messagelabs / Symantec Cloud System, but do not provide

Re: How to allow each user on an Ubuntu server use his/her google email and password to send the email via google smtp?

2015-03-18 Thread Viktor Dukhovni
On Wed, Mar 18, 2015 at 07:38:33AM -0300, Fernando Maior wrote: > You also may try sendemail. Look at > http://caspian.dotconf.net/menu/Software/SendEmail. I use it to send emails > from scripts directly to gmail accounts I use for servers backup control. Sending *to* is not sending *via*. --

Re: How to allow each user on an Ubuntu server use his/her google email and password to send the email via google smtp?

2015-03-18 Thread Viktor Dukhovni
On Wed, Mar 18, 2015 at 05:19:32AM -0500, Peng Yu wrote: > I just need to send emails via gmail through command line. Configuring > postfix for this seems to overkill. I am assuming that when you say "via Gmail" you really mean it. In other words Gmail (port 587 submission) will be asked to relay

Re: How can I duplicate e-mail messages to an additional address?

2015-03-18 Thread Noel Jones
On 3/18/2015 6:35 AM, Eugene V. Boontseff wrote: > Hello everyone! > > I want the mail arriving at a specific address to be duplicated for > the secondary address. > I added a line in the file virtual_aliases: myu...@mydomain.tld > myu...@mydomain.tld,u...@gmail.com > > ma

Re: How to allow each user on an Ubuntu server use his/her google email and password to send the email via google smtp?

2015-03-18 Thread Postfix User
On Wed, 18 Mar 2015 07:38:33 -0300, Fernando Maior stated: > You also may try sendemail. Look > at http://caspian.dotconf.net/menu/Software/SendEmail. I use it to send > emails from scripts directly to gmail accounts I use for servers backup > control.  I use to use it too, but I began getting al

How can I duplicate e-mail messages to an additional address?

2015-03-18 Thread Eugene V. Boontseff
Hello everyone! I want the mail arriving at a specific address to be duplicated for the secondary address. I added a line in the file virtual_aliases: myu...@mydomain.tld myu...@mydomain.tld,u...@gmail.com main.cf : ... mailbox_transport = lmtp:unix:/va

Re: How to allow each user on an Ubuntu server use his/her google email and password to send the email via google smtp?

2015-03-18 Thread Fernando Maior
You also may try sendemail. Look at http://caspian.dotconf.net/menu/Software/SendEmail. I use it to send emails from scripts directly to gmail accounts I use for servers backup control. --- Fernando Maciel Souto Maior On Wed, Mar 18, 2015 at 7:29 AM, Koko Wijatmoko wrote: > On Wed, 18 Mar 2015

Re: How to allow each user on an Ubuntu server use his/her google email and password to send the email via google smtp?

2015-03-18 Thread Koko Wijatmoko
On Wed, 18 Mar 2015 05:19:32 -0500 Peng Yu wrote: > I just need to send emails via gmail through command > line. Configuring postfix for this seems to overkill. > > Using MUA like mutt and sup overkills, too. > > Does anybody know a simplest solution to send emails > via gmail on command line (

Re: How to allow each user on an Ubuntu server use his/her google email and password to send the email via google smtp?

2015-03-18 Thread Christian Kivalo
Am 18. März 2015 11:19:32 MEZ, schrieb Peng Yu : >On Wednesday, March 18, 2015, Dominik George wrote: > >I just need to send emails via gmail through command line. Configuring >postfix for this seems to overkill. > >Using MUA like mutt and sup overkills, too. > >Does anybody know a simplest solu

Re: How to allow each user on an Ubuntu server use his/her google email and password to send the email via google smtp?

2015-03-18 Thread Alexandre Ellert
Le 18 mars 2015 à 11:19, Peng Yu a écrit : > Does anybody know a simplest solution to send emails via gmail on command > line (no receiving emails needed)? Yes, have a look at msmtp. It has TLS support, can do SMTP authentication and works perfectly with gmail.

Re: How to allow each user on an Ubuntu server use his/her google email and password to send the email via google smtp?

2015-03-18 Thread Peng Yu
On Wednesday, March 18, 2015, Dominik George wrote: > Hi, > > > But the problem is that all users on the same ubuntu server will be > > able to use the same google account to send emails. Is there a way to > > configure postfix so that each Ubuntu user will use his/her own google > > account to s

Re: sender_dependent_relayhost_maps does not default to relayhost

2015-03-18 Thread ebberup
I found the possibility in the Postfix configuration parameters:*sender_dependent_relayhost_maps (default: empty)*A sender-dependent override for the global relayhost parameter setting. The tables are searched by the envelope sender address and @domain. /A lookup result of DUNNO terminates the sear

Re: sender_dependent_relayhost_maps does not default to relayhost

2015-03-18 Thread Viktor Dukhovni
On Wed, Mar 18, 2015 at 12:59:29AM -0700, ebberup wrote: > I can't make sender_dependent_relayhost_maps default to relayhost when > trivial-rewrite result is DUNNO. That's because "DUNNO" is an access(5) keyword, and not a generic "nothing here" result for all tables. There is no documentation t

Re: How to allow each user on an Ubuntu server use his/her google email and password to send the email via google smtp?

2015-03-18 Thread Dominik George
Hi, > But the problem is that all users on the same ubuntu server will be > able to use the same google account to send emails. Is there a way to > configure postfix so that each Ubuntu user will use his/her own google > account to send emails? Thanks. You could always build transport maps depend

sender_dependent_relayhost_maps does not default to relayhost

2015-03-18 Thread ebberup
Hi, I can't make sender_dependent_relayhost_maps default to relayhost when trivial-rewrite result is DUNNO. extract from postconf: mail_version = 2.11.1 mydestination = $myhostname, localhost.$mydomain, localhost sender_dependent_relayhost_maps = proxy:pgsql:${config_directory}/senderdep_relay.cf