Re: Postfix accepts mails from valid user without password

2008-08-18 Thread mouss
R Pradeepa wrote: Dear All How to blocks mails in postfix when the valid user sents mail without password. I have enable SASL in postfix, it checks when the wrong password is provided. But when the mail is sent without password, postfix accepts the mails and delivers it. you may want to t

Re: transport by destination, filter by source

2008-08-18 Thread mouss
Pavel Urban wrote: Hello, is there an ellegant way to filter by source and route mail by destination? I have the following scenario: - two destinations - one should accept mails from one domain only restriction classes. - the second one accepts everything I have to route mail to these dest

Postfix (virtual) and Mailman, Invalid user specified.

2008-08-18 Thread Num ber
(Sorry for the last message, it's was not readable !! ) Hello,I'm sorry i know that the question was already asked, but i have try manything, and no one work.. I'm try to have mailman with postfix.. I use Postfix with mysql, and for my domaine everything work perfectly.. Now i have do that :Add

Re: Postfix accepts mails from valid user without password

2008-08-18 Thread Sandy Drobic
R Pradeepa wrote: Dear All How to blocks mails in postfix when the valid user sents mail without password. I have enable SASL in postfix, it checks when the wrong password is provided. But when the mail is sent without password, postfix accepts the mails and delivers it. You probably are

transport by destination, filter by source

2008-08-18 Thread Pavel Urban
Hello, is there an ellegant way to filter by source and route mail by destination? I have the following scenario: - two destinations - one should accept mails from one domain only - the second one accepts everything I have to route mail to these destinations. Right now I'm using smtpd_sender_res

Postfix accepts mails from valid user without password

2008-08-18 Thread R Pradeepa
Dear All How to blocks mails in postfix when the valid user sents mail without password. I have enable SASL in postfix, it checks when the wrong password is provided. But when the mail is sent without password, postfix accepts the mails and delivers it. Please Help Pradeepa

Re: restriction class and mysql lookup

2008-08-18 Thread Magnus Bäck
On Tuesday, August 19, 2008 at 04:48 CEST, Zhang Huangbin <[EMAIL PROTECTED]> wrote: [...] > In my record: > cut<< > mysql> select username,restriction_class,restricteddomain from > restrictions; > +--+---+--+ > | username | restriction_cl

Re: restriction class and mysql lookup

2008-08-18 Thread Zhang Huangbin
mouss wrote: so your check_recipient_access returns 'b.cn', which is not a valid action. what are you trying to do? you cannot implement checks based on multiple fields at a time, so your table design is suspicious (username and restricteddomain are independent). Thanks mouss. :) i want t

Re: Policy filter applied from command line

2008-08-18 Thread Wietse Venema
Tony Holmes: > > > To force sendmail command-line submissions through the SMTP server, > > > use this: > > > > > > /etc/postfix/master.cf > > > pickupfifo n - n 60 1 pickup > > > -o content_filter=smtp:[127.0.0.1]:10025 > > > [127.0.0.1]:10025 > > >

Re: Policy filter applied from command line

2008-08-18 Thread Tony Holmes
> > To force sendmail command-line submissions through the SMTP server, > > use this: > > > > /etc/postfix/master.cf > > pickupfifo n - n 60 1 pickup > > -o content_filter=smtp:[127.0.0.1]:10025 > > [127.0.0.1]:10025 > > inet n -

Re: How to do address verification when using a pipe with a virtual_transport?

2008-08-18 Thread postfixml
On Mon, Aug 18, 2008 at 10:34:27PM +0200, mouss wrote: > ... > if mail is received via the sendmail command, no address validation is > performed, for the reasons explained above. Thanks. Its exactly what I saw when I was testing. -- Best regards, saf

Re: How to do address verification when using a pipe with a virtual_transport?

2008-08-18 Thread mouss
[EMAIL PROTECTED] wrote: Hi, On Mon, Aug 18, 2008 at 07:06:20PM +0200, mouss wrote: ... you don't provide enough information to get help. as stated above, you need to show the output of 'postconf -n'. you also need to show the contents of master.cf (so that we see that you didn't disable reci

Re: Policy filter applied from command line

2008-08-18 Thread Wietse Venema
Wietse Venema: > Tony Holmes: > > > > smtpd_sender_restrictions = > > > > check_sender_access > > > > hash:/usr/local/etc/postfix/cwahi_net-allowed > > > > check_policy_service inet:216.18.117.19:10031 > > > > reject > > > > > > > > /usr/local/etc/postfix/cwahi_net-allowed

Re: Policy filter applied from command line

2008-08-18 Thread Wietse Venema
Tony Holmes: > > > smtpd_sender_restrictions = > > > check_sender_access hash:/usr/local/etc/postfix/cwahi_net-allowed > > > check_policy_service inet:216.18.117.19:10031 > > > reject > > > > > > /usr/local/etc/postfix/cwahi_net-allowed: > > > root PERMIT > > > > As documented in the a

Re: Policy filter applied from command line

2008-08-18 Thread mouss
Tony Holmes wrote: I am looking to allow/check policy/reject. This is where I am tripping up - essentially want the same power as the smtpd restrictions, but for the command line. Ideally without having to deploy another box :) configure your wrapper to use smtp to a specific port where you can

Re: Policy filter applied from command line

2008-08-18 Thread Tony Holmes
> >I am looking to allow/check policy/reject. This is where I am tripping > >up - essentially want the same power as the smtpd restrictions, but for > >the command line. Ideally without having to deploy another box :) > > > > configure your wrapper to use smtp to a specific port where you can use

Re: Policy filter applied from command line

2008-08-18 Thread mouss
Tony Holmes wrote: [snip] I am looking to allow/check policy/reject. This is where I am tripping up - essentially want the same power as the smtpd restrictions, but for the command line. Ideally without having to deploy another box :) configure your wrapper to use smtp to a specific port wher

Re: Multiple "smart hosts?"

2008-08-18 Thread Noel Jones
Peter L. Berghold wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 mouss wrote: # transport map entry: [EMAIL PROTECTED] relay:[ip.of.pager.smtp] Ohh.. good grief. I just discovered Comcraps has decided to block port 25. I didn't notice before because I haven't used port 25 between

Re: Policy filter applied from command line

2008-08-18 Thread Tony Holmes
> > smtpd_sender_restrictions = > > check_sender_access hash:/usr/local/etc/postfix/cwahi_net-allowed > > check_policy_service inet:216.18.117.19:10031 > > reject > > > > /usr/local/etc/postfix/cwahi_net-allowed: > > rootPERMIT > > As documented in the access(5) manual page, t

Re: Policy filter applied from command line

2008-08-18 Thread Tony Holmes
> Note: sendmail client is received via the pickup service *not* smptd. > > You need PHP to send via SMTP. There are many ways to do this and many > scripts available to integrate. > My favorite is htmlMimeMail (google it for details). There is also the > PEAR version as well. That looks good

Re: Policy filter applied from command line

2008-08-18 Thread Brian Evans - Postfix List
Tony Holmes wrote: My google-fu has failed me. I have a FreeBSD 7 system for hosting php for various users on it. I wish to allow the php mail() function to work but to aslo prevent spam and enforce an outgoing quota. I have replaced the default sendmail command and am including my own wrapper

Re: Policy filter applied from command line

2008-08-18 Thread Wietse Venema
Tony Holmes: > My google-fu has failed me. > > I have a FreeBSD 7 system for hosting php for various users on it. > I wish to allow the php mail() function to work but to aslo prevent > spam and enforce an outgoing quota. I have replaced the default sendmail > command and am including my own wrap

Policy filter applied from command line

2008-08-18 Thread Tony Holmes
My google-fu has failed me. I have a FreeBSD 7 system for hosting php for various users on it. I wish to allow the php mail() function to work but to aslo prevent spam and enforce an outgoing quota. I have replaced the default sendmail command and am including my own wrapper to ensure the from ad

Re: Postfix (virtual) and Mailman, Invalid user specified.

2008-08-18 Thread mouss
Num ber wrote: Hello,I'm sorry i know that the question was already asked, but i have try manything, you should consider getting another address and using a real mailer. your message is hardly readable. anyway, you have a maildrop problem (it says "Invalid user specified"). this is no

Re: Multiple "smart hosts?"

2008-08-18 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 mouss wrote: >> # transport map entry: >> [EMAIL PROTECTED] relay:[ip.of.pager.smtp] >> Ohh.. good grief. I just discovered Comcraps has decided to block port 25. I didn't notice before because I haven't used port 25 between my host at home and m

Re: How to do address verification when using a pipe with a virtual_transport?

2008-08-18 Thread mouss
[EMAIL PROTECTED] wrote: Hello, I tried to get my own delivery transport agent. It works perfectly. But I get no address verification to work. virtual_mailbox_domains = testmail2.dyndns.org virtual_mailbox_base = /var/mail/obsolete # I'm forced to put this line? what is the "#garbage" doing he

Re: How to do address verification when using a pipe with a virtual_transport?

2008-08-18 Thread Wietse Venema
[EMAIL PROTECTED]: > Hello, > > I tried to get my own delivery transport agent. It works perfectly. > But I get no address verification to work. > virtual_mailbox_domains = testmail2.dyndns.org > virtual_mailbox_base = /var/mail/obsolete # I'm forced to put this line? > virtual_mailbox_maps = hash

Re: How to do address verification when using a pipe with a virtual_transport?

2008-08-18 Thread Brian Evans - Postfix List
Brian Evans - Postfix List wrote: [EMAIL PROTECTED] wrote: Hello, I tried to get my own delivery transport agent. It works perfectly. But I get no address verification to work. virtual_mailbox_domains = testmail2.dyndns.org virtual_mailbox_base = /var/mail/obsolete # I'm forced to put this line

Re: Multiple "smart hosts?"

2008-08-18 Thread mouss
Noel Jones wrote: Peter L. Berghold wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On my server at home I am running Nagios to keep track of what my servers and applications are doing. I send alerts over SMTP to my pager when things go wrong. One of the hosts that I'm monitoring (along

Re: How to do address verification when using a pipe with a virtual_transport?

2008-08-18 Thread Brian Evans - Postfix List
[EMAIL PROTECTED] wrote: Hello, I tried to get my own delivery transport agent. It works perfectly. But I get no address verification to work. virtual_mailbox_domains = testmail2.dyndns.org virtual_mailbox_base = /var/mail/obsolete # I'm forced to put this line? virtual_mailbox_maps = hash:/etc/

Re: restriction class and mysql lookup

2008-08-18 Thread mouss
Zhang Huangbin wrote: Hi, all. I'm confused about restriction class and the mysql lookup file format. What i should use in 'query'? Thanks very much. :) MySQL table structure: cut<< +---+--+--+-+-+---+ | Field

How to do address verification when using a pipe with a virtual_transport?

2008-08-18 Thread postfixml
Hello, I tried to get my own delivery transport agent. It works perfectly. But I get no address verification to work. virtual_mailbox_domains = testmail2.dyndns.org virtual_mailbox_base = /var/mail/obsolete # I'm forced to put this line? virtual_mailbox_maps = hash:/etc/postfix/vmailbox # is simpl

Re: Multiple "smart hosts?"

2008-08-18 Thread Noel Jones
Peter L. Berghold wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On my server at home I am running Nagios to keep track of what my servers and applications are doing. I send alerts over SMTP to my pager when things go wrong. One of the hosts that I'm monitoring (along with various servi

Multiple "smart hosts?"

2008-08-18 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On my server at home I am running Nagios to keep track of what my servers and applications are doing. I send alerts over SMTP to my pager when things go wrong. One of the hosts that I'm monitoring (along with various services) is the VPS that I use

Re: Getting a mailing loop on mailman delivery host

2008-08-18 Thread Brian Evans - Postfix List
Rob Tanner wrote: Please don't top post. I don't feel as if I fully understand your problem, but maybe a transport_maps like this will help: mailman.linfield.edu : *smtp:smtp.linfield.edu If that doesn't help, please see: http://www.postfix.org/documentation.html http://www.postfix.o

restriction class and mysql lookup

2008-08-18 Thread Zhang Huangbin
Hi, all. I'm confused about restriction class and the mysql lookup file format. What i should use in 'query'? Thanks very much. :) MySQL table structure: cut<< +---+--+--+-+-+---+ | Field | Type | Null | K

Re: Postfix (virtual) and Mailman, Invalid user specified.

2008-08-18 Thread Wietse Venema
Num ber: > Hello,I'm sorry i know that the question was already asked, but i have try >- manything, and no one work..I'm try to have mailman with postfix..I use Pos >-tfix with mysql, and for my domaine everything work perfectly..Now i have do >- that :Add mailman aliases and virtual-mailman to ma

Re: SASL problem

2008-08-18 Thread Patrick Ben Koetter
* punit jain <[EMAIL PROTECTED]>: > HI All, > > I have postfix server running and have configured sasl. I have configured > SASL but i could see : - > > telnet 0.0.0.0 25 > Trying 0.0.0.0... > Connected to 0.0.0.0. > Escape character is '^]'. > 220 mail.example.com ESMTP Postfix > ehlo irfan > 25

Postfix (virtual) and Mailman, Invalid user specified.

2008-08-18 Thread Num ber
Hello,I'm sorry i know that the question was already asked, but i have try manything, and no one work..I'm try to have mailman with postfix..I use Postfix with mysql, and for my domaine everything work perfectly..Now i have do that :Add mailman aliases and virtual-mailman to main.cf, but i alw

SASL problem

2008-08-18 Thread punit jain
HI All, I have postfix server running and have configured sasl. I have configured SASL but i could see : - telnet 0.0.0.0 25 Trying 0.0.0.0... Connected to 0.0.0.0. Escape character is '^]'. 220 mail.example.com ESMTP Postfix ehlo irfan 250-mail.andare.ch 250-PIPELINING 250-SIZE 2048 250-VRFY

Re: this is my postfix conf

2008-08-18 Thread Sandy Drobic
sharad kanekar wrote: Now I am able to telnet on 110 port but unable to telnet on port 25 The error is as shown below. Please help me to overcome this problem. Thanks in advance. Sharad telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '