Receive mails with a bash script

2009-07-20 Thread Andrea
you solve the problem? Where is my error? I think configuration 1) is the exact one, but how do I say to postfix that domain is not local and to redirect it to the script (accepting all IPs)? Thanks, Andrea

Re: Receive mails with a bash script

2009-07-20 Thread Andrea
2009/7/20 Andrea > *But* I have some problems. > > 1) If I set: > mydestination = mydomain.com, script.mydomain.com, > every mail I receive on script.mydomain.com isn't redirected to script, > and I receive "*Recipient address rejected*: *User unknown in local > re

unknown_address_reject_code = 550 working random?

2014-01-16 Thread Andrea
ows why this happens? How can I force to have always 550 for inexistent domain on sender address? This happens on both postfix 2.9.6-2 or 2.2.8-1.2 Thanks, Andrea

Re: unknown_address_reject_code = 550 working random?

2014-01-16 Thread Andrea
2014/1/16 Wietse Venema > Andrea: > > Anyone knows why this happens? > > How can I force to have always 550 for inexistent domain on sender > address? > > Postfix will ALWAYS reply 450 after TEMPORARY lookup error. > Doing otherwise would be a mistake. > >

Re: unknown_address_reject_code = 550 working random?

2014-01-16 Thread Andrea
lies with "Domain not found" in both cases, but with 450 if domain is registered and its DNS is down, and with 550 if domains doesn't exist. I didn't check existence of domains because I associated "Domain not found" with unexistent domain. Thanks, Andrea

Multiple auth (rimap + auxprop)

2014-03-31 Thread Andrea
check with the first and if it fails to check with the second one? Thanks! Andrea

Re: Multiple auth (rimap + auxprop)

2014-03-31 Thread Andrea
2014-03-31 15:30 GMT+02:00 Patrick Ben Koetter : > > > Configure saslauthd for rimap and the SQL auxprop for MySQL. > Then expand pwcheck_method in smtpd.conf like this: > > pwcheck_method: auxprop saslauthd > Thanks, that's what I did but it seems not working. saslauthd only works, auxprop sql o

Re: Multiple auth (rimap + auxprop)

2014-03-31 Thread Andrea
2014-03-31 20:39 GMT+02:00 Patrick Ben Koetter : > Any log? > > Sure, with: pwcheck_method: saslauthd mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5 NTLM Using IMAP account works. When I change smtpd.conf with: pwcheck_method: auxprop saslauthd mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5 NTLM auxp

Re: Multiple auth (rimap + auxprop)

2014-03-31 Thread Andrea
2014-03-31 20:57 GMT+02:00 Andrea : > > Mar 31 20:52:32 smtps postfix/smtpd[14221]: warning: > unknown[192.168.0.42]: SASL LOGIN authentication failed: authentication > failure > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: 535 > 5.7.8 Error:

Re: Multiple auth (rimap + auxprop)

2014-03-31 Thread Andrea
2014-03-31 21:30 GMT+02:00 Patrick Ben Koetter : > Hae you tried PLAIN with auxprop only? Use gen-auth, a script from John > Jetmoore, to create auth strings and telnet to the server. > > p@rick > > Yes, tried even now with help of gen-auth and testsaslauthd. testsaslauthd works perfectly! 1) jus

Re: Multiple auth (rimap + auxprop)

2014-03-31 Thread Andrea
2014-03-31 21:52 GMT+02:00 Andrea : > > > 2014-03-31 21:30 GMT+02:00 Patrick Ben Koetter : > > Hae you tried PLAIN with auxprop only? Use gen-auth, a script from John >> Jetmoore, to create auth strings and telnet to the server. >> >> p@rick >> >> &g

Re: Multiple auth (rimap + auxprop)

2014-04-01 Thread Andrea
n't seem a saslauthd problem but a postfix problem 2014-03-31 22:02 GMT+02:00 Andrea : > > > 2014-03-31 21:52 GMT+02:00 Andrea : > > >> >> 2014-03-31 21:30 GMT+02:00 Patrick Ben Koetter : >> >> Hae you tried PLAIN with auxprop only? Use gen-auth, a script fro

Re: Multiple auth (rimap + auxprop)

2014-04-01 Thread Andrea
2014-04-01 15:00 GMT+02:00 Viktor Dukhovni : > > No, it is a Cyrus SASL configuration problem, Postfix is just the messenger > between Cyrus SASL and the SMTP client. > > Perhaps testsaslauthd is not the right tool to test with, because > you're trying to use rimap, auxprop, ... which are not dire

Re: Multiple auth (rimap + auxprop)

2014-04-01 Thread Andrea
2014-04-01 18:43 GMT+02:00 Viktor Dukhovni : > One question we have not discussed is file permissions and chroot. > > Yes I checked it: on the debian postfix is chrooted, on the centos not. It seems everything ok, proof should be that if I remove auxprop and let just saslauthd it works. If it was

smtp_tls_security_level = may with Exchange

2014-06-26 Thread Andrea
of their servers.. but is there some way to avoid it? Is there a way to tell postfix to avoid tls1 if delivery fails? Thanks! Andrea

header_checks pcre

2014-07-18 Thread Andrea
ender different from domain.com if /.*xxx\.yyy\.zzz\.www/ !/.*(Ff)rom.*\@domain\.com.*/ reject This seems spam! endif Second rule seems to block every mail even from domain.com. How can I do what I want? I want some IP able to send mail just using some domains. Thanks! Andrea

Accept all mail on separate port

2017-06-06 Thread Andrea
Hi all. Due to the demise of the Sixxs project, which I was using to bypass the ISP’s filtering of port 25 (in/out), I would like to open a "private" port on postfix. It’s a non-standard port and I will be filtering the src range at firewall level so I’m pretty confident there will be no abuse. I

Mail routing based on my own policy

2010-02-09 Thread Andrea Gabellini
t can return a transport:destination value? Thanks, Andrea -- There can never be a computer language in which you cannot write a bad program. Ing. Andrea Gabellini

Re: Mail routing based on my own policy

2010-02-09 Thread Andrea Gabellini
Ralf Hildebrandt ha scritto: > * Andrea Gabellini : >> Hello, >> >> I need to route emails that flow through my postfix/spamassassin gateway >> to different hosts based on my own policy. >> >> I think I have to use the transport mechanism, but I can

Re: Mail routing based on my own policy

2010-02-11 Thread Andrea Gabellini
Thank you. I just compiled 2.6.5 with it and wrote a little tcp server with Net::Server. I can use it in transport_maps returning a string "200 snmp:my_mail_host" Andrea Wietse Venema ha scritto: > Ralf Hildebrandt: >> * Andrea Gabellini : >> >>> I already

Question about MX + Graylist problem

2010-09-15 Thread Andrea Urbani
servers. Thank you in advance Andrea

filter emails not only by domain

2011-01-20 Thread Andrea Scarso
evel domain should be used, but I'm not the admin of the domain.com servers. Thanks! Andrea

Re: filter emails not only by domain

2011-01-20 Thread Andrea Scarso
> Don't use FILTER for mail routing; it affects all recipients of a message. > > Do use transport_maps entries to direct specific recipients to the correct > mail server. > > # transport_maps > example.com  smtp:[IP1] > u...@example.com  smtp:[IP2] > I tried, but I have to know all addresses. Or i

misunderstanding with dovecot

2011-07-29 Thread Andrea Ganduglia
Hi. I have a little issue with postfix and dovecot. Below you can find my actual configuration, this works well if I use virtual_transport = virtual but if I add those lines: transport_maps = mysql:/etc/postfix/mysql_virtual_transport.cf maildrop_destination_recipient_limit = 1 virtual_transport =

Re: misunderstanding with dovecot

2011-07-29 Thread Andrea Ganduglia
On Fri, Jul 29, 2011 at 7:05 PM, Jeroen Geilman wrote: > On 2011-07-29 18:37, Andrea Ganduglia wrote: >> my outbound traffic try to authenticate recipients and delivery fails > My god, why is this so complicated ? > > You're adding extra transport maps to a transport that i

Re: misunderstanding with dovecot

2011-07-29 Thread Andrea Ganduglia
On Fri, Jul 29, 2011 at 11:04 PM, Jeroen Geilman wrote: > On 2011-07-29 21:20, Andrea Ganduglia wrote: >> >> On Fri, Jul 29, 2011 at 7:05 PM, Jeroen Geilman  wrote: >>> >>> On 2011-07-29 18:37, Andrea Ganduglia wrote: >>>> >>>> my outbound

Re: misunderstanding with dovecot

2011-07-30 Thread Andrea Ganduglia
On Fri, Jul 29, 2011 at 11:40 PM, Victor Duchovni wrote: > On Fri, Jul 29, 2011 at 11:34:54PM +0200, Andrea Ganduglia wrote: > >> > This is not difficult, as long as you don't override postfix' default >> > behaviour with silly transport_maps that don'

Re: misunderstanding with dovecot

2011-07-30 Thread Andrea Ganduglia
On Sat, Jul 30, 2011 at 9:27 AM, Stan Hoeppner wrote: > On 7/29/2011 4:40 PM, Victor Duchovni wrote: >> On Fri, Jul 29, 2011 at 11:34:54PM +0200, Andrea Ganduglia wrote: >> >>>> This is not difficult, as long as you don't override postfix' default >>

Re: misunderstanding with dovecot

2011-07-30 Thread Andrea Ganduglia
On Sat, Jul 30, 2011 at 11:10 AM, Stan Hoeppner wrote: > On 7/30/2011 3:23 AM, Andrea Ganduglia wrote: >> On Fri, Jul 29, 2011 at 11:40 PM, Victor Duchovni >> wrote: >>> On Fri, Jul 29, 2011 at 11:34:54PM +0200, Andrea Ganduglia wrote: >>> >>>>

Re: misunderstanding with dovecot

2011-08-03 Thread Andrea Ganduglia
On Sun, Jul 31, 2011 at 11:08 PM, Victor Duchovni wrote: > On Sat, Jul 30, 2011 at 12:20:40PM +0200, Andrea Ganduglia wrote: > >> >>>> Without transport_maps it doesn't works. If I set virtual_transport = >> >>>> dovecot log returns relay=none >

Re: misunderstanding with dovecot

2011-08-03 Thread Andrea Ganduglia
On Mon, Aug 1, 2011 at 5:53 AM, Benny Pedersen wrote: > On Fri, 29 Jul 2011 23:34:54 +0200, Andrea Ganduglia wrote: > >> transport_maps = mysql:/etc/postfix/mysql_virtual_transport.cf >> maildrop_destination_recipient_limit = 1 >> virtual_transport = virtual > >

Re: misunderstanding with dovecot

2011-08-03 Thread Andrea Ganduglia
On Wed, Aug 3, 2011 at 4:01 PM, Benny Pedersen wrote: > On Wed, 3 Aug 2011 09:56:35 +0200, Andrea Ganduglia wrote: >> >> On Mon, Aug 1, 2011 at 5:53 AM, Benny Pedersen wrote: >>> >>> On Fri, 29 Jul 2011 23:34:54 +0200, Andrea Ganduglia wrote: >>>

Re: misunderstanding with dovecot

2011-08-03 Thread Andrea Ganduglia
On Wed, Aug 3, 2011 at 12:19 PM, Stan Hoeppner wrote: > On 8/3/2011 2:56 AM, Andrea Ganduglia wrote: > >> If I set >> >> virtual_transport = dovecot >> >> outbound emails are always deferred. > > I gave you the correct fix for this a few days ago: 587 s

Problem with postfix and amavis

2011-08-22 Thread Andrea Cappelli
pears, but instead I would that after address translation (alias --> real mailbox) the mail is injected in the postfix queue as a normal mail, or better let the address translation occur before amavis step Is this possible? -- Ing. Andrea Cappelli Asidev s.r.l. Via Osteria Bianca, 108/

Re: Problem with postfix and amavis

2011-08-22 Thread Andrea Cappelli
t all. If the same mail is sent directly to the real mailbox the headers are added and the mail is moved to Spam directory through a sieve filter Can anyone explain this behaviour? -- Ing. Andrea Cappelli Asidev s.r.l. Via Osteria Bianca, 108/6A 50053 Empoli (Firenze) Tel. (+39) 333 60 18

Re: Problem with postfix and amavis

2011-08-22 Thread Andrea Cappelli
Il 22/08/11 22:51, Fernando Maior ha scritto: Andrea, How did you look at the final delivered mail? Did you use cat or vi or another text editor? Cause if you just try using a webmail or mail client you may not be able to see those headers... Hi, I saw the headers opening the file delivered

postfwd - limit outgoing mail

2011-12-16 Thread Andrea Ganduglia
Hello! How can I limit outgoing mail with postfwd? I tried a simple rule like id=DEFAULT; action=dunno Dec 16 18:44:40 sheldon postfwd[4000]: [RULES] rule=0, id=DEFAULT, client=*[000.000.000.000], sender=, recipient=, helo=<>, proto=ESMTP, state=RCPT, delay=0s, hits=DEFAULT, action=dunno

smtpd_restriction_classes clarification

2012-02-28 Thread Andrea Gozzi
specified in main.cf, also blocks emails from certain senders? Right now I have: smtpd_restriction_classes = nofilter nofilter = permit If I create a new class, eg. allchecks, do I need to list every single *sender, *client and *recipient that I already have by default? Thanks. Andrea

Mail delivery for local mailbox

2012-03-28 Thread Andrea Cappelli
onfiguration to support user migration, both in and out, from my server, during migration there is a window in which the mailbox is up on both servers Thank you -- Ing. Andrea Cappelli Asidev s.r.l. Viale Rinaldo Piaggio, 32 - 56025 Pontedera (Pisa) @CERFITT Via Osteria Bianca, 108/6A 50053 Empol

Re: Mail delivery for local mailbox

2012-03-28 Thread Andrea Cappelli
ase I would Postfix check the MX record (which is still pointing to the other server) before check local mailbox. It's possible? Or the are better way to accomplish this? -- Ing. Andrea Cappelli Asidev s.r.l. Viale Rinaldo Piaggio, 32 - 56025 Pontedera (Pisa) @CERFITT Via Osteria Bianca, 108

Recipient delimiter

2012-07-28 Thread Andrea Gozzi
c rules in dovecot (eg sieve) to do it? Moreover, I have recipient_bcc_maps on and the user requiring the delimiter is listed there. Will the separator have any impact on that? Thanks! Andrea

Bounce template

2012-09-11 Thread Andrea Cappelli
27;m missing something but I can't figure what? Anyone has a similar issue? -- Andrea Cappelli Asidev s.r.l.

Re: Bounce template

2012-09-11 Thread Andrea Cappelli
Il 11/09/2012 12:58, Wietse Venema ha scritto: First, test with "postconf -b". If the result is right then something down-stream is messing up Postfix's bounces. Wietse The test with postconf -b shows no error and expand the variable $myhostname to the right value, but Charset and and other t

Re: Bounce template

2012-09-11 Thread Andrea Cappelli
Il 11/09/2012 14:15, Wietse Venema ha scritto: Basic Internet email: no whitespace before a header label. Wietse Thank you for your support, now works as expected Best regards -- Andrea Cappelli Asidev s.r.l.

Mail in maildrop queue

2013-09-19 Thread Andrea Cappelli
_recipient and enable recipient probe smtpd_recipient_restrictions = permit_mynetworks, reject_non_fqdn_recipient, permit_sasl_authenticated, reject_unlisted_recipient, reject_unknown_recipient_domain, reject_unauth_destination Postfix is 2.9.6 on Ubuntu 12.04 Thanks -- Andrea Cappelli

Never deliver outbound mail for a specified domain

2008-09-06 Thread Andrea Gozzi
end mail. Any email originating from the webmail for myfreemail.com will have to be diverted to [EMAIL PROTECTED] without telling the sender. To him everything will look like it went well and the delivery was successful. My question is: can I accomplish something like that with postfix (and my current virtual domain setup)? Andrea

Re: Never deliver outbound mail for a specified domain

2008-09-09 Thread Andrea Gozzi
On Sat, 2008-09-06 at 08:27 -0400, Wietse Venema wrote: > Andrea Gozzi: > > Hi all. > > Some time ago I set up a spammers' trap in the way of a fake webmail > > service where they can register for a "free account". > > Up until now I was just saving their

Re: Never deliver outbound mail for a specified domain

2008-09-09 Thread Andrea Gozzi
> > The answer depends on how your webmail injects mail into Postfix. > > Wietse Via smtpd. Andrea ps: just as a curiosity, would it even be possible to restrict based on IP if injected via sendmail?

Re: Never deliver outbound mail for a specified domain

2008-09-09 Thread Andrea Gozzi
On Tue, 2008-09-09 at 22:06 +0200, mouss wrote: > Andrea Gozzi wrote: > > On Tue, 2008-09-09 at 13:03 -0400, Wietse Venema wrote: > >>> > >>> It works, thanks. > >>> I have one further question: how do I restrict access to postfix for any > >>&

Re: Never deliver outbound mail for a specified domain

2008-09-11 Thread Andrea Gozzi
On Tue, 2008-09-09 at 13:25 -0400, Wietse Venema wrote: > Andrea Gozzi: > > On Tue, 2008-09-09 at 13:03 -0400, Wietse Venema wrote: > > > > > > > > > > > > It works, thanks. > > > > I have one further question: how do I restrict access to

Re: Never deliver outbound mail for a specified domain

2008-09-11 Thread Andrea Gozzi
On Thu, 2008-09-11 at 09:00 +0200, Andrea Gozzi wrote: > > The REDIRECT check can easily be bypassed by changing the MAIL FROM: , > so I configured the webmail to allow mail originating from the real > address only. > Unfortunately, someone might still try to connect directly t

Re: Never deliver outbound mail for a specified domain

2008-09-11 Thread Andrea Gozzi
On Thu, 2008-09-11 at 08:20 -0400, Wietse Venema wrote: > Andrea Gozzi: > > On Tue, 2008-09-09 at 13:25 -0400, Wietse Venema wrote: > > > Andrea Gozzi: > > > > On Tue, 2008-09-09 at 13:03 -0400, Wietse Venema wrote: > > > > > > > > > &g

how to configure smtp process to use all the destination (s) in one go

2016-03-03 Thread Andrea Borghi
-enabled host so i need to respect the 3.1.1 requirement on said RFC. For all other requirement i have a solution and currently my system works as expected only if the handled message has only one recipient. Andrea

Re: how to configure smtp process to use all the destination (s) in one go

2016-03-03 Thread Andrea Borghi
On Thursday 03 March 2016 13:09:42 Andrea Borghi wrote: excue me, i forgot. Using Postfix 2.11.3-1 as distributed with debian jessie (stable) Andrea

Re: how to configure smtp process to use all the destination (s) in one go

2016-03-03 Thread Andrea Borghi
s in order to use the correct identitication to the next-hop host. perhaps i can use the output of the sender_dependent_relayhost selection as a key to select a trasport and then specify the grouping as you suggest as wilcard in *that* transport ? Andrea

sender based routing and transport_maps

2016-08-20 Thread Andrea Cappelli
y:mysql:/etc/postfix/virtual/domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/virtual/forwarding.cf, proxy:mysql:/etc/postfix/virtual/mailbox.cf virtual_transport = dovecot virtual_uid_maps = static:5000 Thank you -- Andrea Cappelli

Re: sender based routing and transport_maps

2016-08-20 Thread Andrea Cappelli
2016-08-20 23:40 GMT+02:00 Andrea Cappelli : > Hi All, > I have a postfix 2.9.6 setup on Ubuntu 12.04 which serve a bounch of local > mailbox and act as mail gateway with a tcp transport > > I want to use some external authenticated MTA based on sendere domain, so > Ok,

Re: sender based routing and transport_maps

2016-08-21 Thread Andrea Cappelli
com get relayed correctly, other mail go to default smtp Is my goal achievable and I'm worng at the configuration? It's a bad idea? Thanks Andrea

Replace Message-Id with header_checks

2011-03-23 Thread Andrea Di Mario
PLACE Message-Id: <$1...@domain.tld> endif It doesn't work. Could you tell me some suggestions? Thanks. Regards. -- Andrea Di Mario SPEAKAGE

Re: Postscreen DNSBL weights

2012-05-05 Thread Andrea gabellini - SC
=127.0.0.[10;11]*2, bl.spamcop.net, bl.mailspike.net=127.0.0.[2;10;11;12]*2, b.barracudacentral.org, ix.dnsbl.manitu.net postscreen_dnsbl_threshold = 2 Andrea Il 04/05/2012 17:29, Rod K ha scritto: > Hi all, > > Was wondering if anyone would be willing to share what DNSBL and > weights th

Re: Postscreen DNSBL weights

2012-05-11 Thread Andrea gabellini - SC
wl.mailspike.net=127.0.0.[19;20]*-2 Thanks, Andrea Il 11/05/2012 14:35, /dev/rob0 ha scritto: > On Thu, May 10, 2012 at 11:38:07PM -0400, Sahil Tandon wrote: >> On Fri, 2012-05-04 at 11:29:01 -0400, Rod K wrote: >> >>> Was wondering if anyone would be willing to share what DNSBL

RE: postfix unavailable at 5 minutes after the hour?

2010-05-12 Thread Jorge Andrea G Carminati
> -Original Message- > From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > us...@postfix.org] On Behalf Of Uwe Dippel > Sent: Wednesday, May 12, 2010 10:20 > To: Wietse Venema > Cc: postfix-users@postfix.org > Subject: Re: postfix unavailable at 5 minutes after the hour? > > On 0

OT: sid-milter package

2010-06-25 Thread Jorge Andrea G Carminati
Hi all! I'm trying to implement sid-milter with Postfix 2.7, but am having some problems while trying to compile release 1.0 under RHEL 5.5 (x86_64) as shown below, any ideas? otherwise, does anyone know where can I find an rpm package for my distro? Thanks in advance. make[1]: Entering directo

restrict relay server to the Internet

2010-08-02 Thread Jorge Andrea G Carminati
hi all! I've a postfix server with a network table of around 100 IP addresses (net/host), is there a way to explicitly permit the relaying to the Internet from some of these IPs and others not? thanks in advance. "Cuidar la naturaleza es vivir mejor... hag?

RE: Mail Statistics (OFF TOPIC)

2010-10-06 Thread Jorge Andrea G Carminati
> -Original Message- > From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > us...@postfix.org] On Behalf Of Carlos Mennens > Sent: Wednesday, October 06, 2010 15:32 > To: Postfix > Subject: Mail Statistics (OFF TOPIC) > > Guys I apologize if this doesn't belong here but I did a 'G