stupid question about sendmail

2013-05-24 Thread Wojciech Puchar
how to redirect recipient address. i mean - if someone try to send to x...@y.pl from serwer then it should be redirected to local account, while the rest of mails to domain @y.pl should get out normally. alternatively outgoing mail to x...@y.pl should be rejected. tried access.db -

Re: stupid question about sendmail

2013-05-24 Thread Chris Rees
On 24 May 2013 08:34, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: how to redirect recipient address. i mean - if someone try to send to x...@y.pl from serwer then it should be redirected to local account, while the rest of mails to domain @y.pl should get out normally. alternatively

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 09:33+0200, Wojciech Puchar wrote: how to redirect recipient address. i mean - if someone try to send to x...@y.pl from serwer then it should be redirected to local account, while the rest of mails to domain @y.pl should get out normally. alternatively outgoing mail to

Re: stupid question about sendmail

2013-05-24 Thread Wojciech Puchar
To:x...@y.pl REJECT doesn't work any idea. thank you Don't use /etc/mail/access, use /etc/mail/aliases. E.g.: x: /dev/null x is NOT on my server. it will not work. all i want is when someone send a mail from my server to x...@y.pl (which is someone else domain) it will not get

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 09:55+0200, Wojciech Puchar wrote: To:x...@y.pl REJECT doesn't work any idea. thank you Don't use /etc/mail/access, use /etc/mail/aliases. E.g.: x: /dev/null x is NOT on my server. it will not work. all i want is when someone send a

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 10:19+0200, Trond Endrestøl wrote: My bad, take a look at the /etc/mail/genericstable file: http://www.sendmail.com/sm/open_source/docs/m4/features.html Maybe a line like this one will help you achieve your goal: j...@bar.com error:5.7.0:550 Address invalid I was

Re: stupid question about sendmail

2013-05-24 Thread Wojciech Puchar
all i want is when someone send a mail from my server to x...@y.pl (which is someone else domain) it will not get there and be blocked or redirected My bad, take a look at the /etc/mail/genericstable file: http://www.sendmail.com/sm/open_source/docs/m4/features.html Maybe a line like this one

Re: stupid question about sendmail

2013-05-24 Thread Wojciech Puchar
http://www.sendmail.com/sm/open_source/docs/m4/features.html Maybe a line like this one will help you achieve your goal: j...@bar.comerror:5.7.0:550 Address invalid I was wrong again, sorry, but I believe I got it right this time: 1. Edit the /etc/mail/access file. 2. Insert a line

Re: stupid question about sendmail

2013-05-24 Thread Chris Rees
On 24 May 2013 11:05, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: http://www.sendmail.com/sm/open_source/docs/m4/features.html Maybe a line like this one will help you achieve your goal: j...@bar.com error:5.7.0:550 Address invalid I was wrong again, sorry, but I believe I

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 12:03+0200, Wojciech Puchar wrote: 1. Edit the /etc/mail/access file. 2. Insert a line like this one: To:mail...@some.domain.tld REJECT tried too. doesn't work. Make sure you edit the /etc/mail/access file, not the /etc/mail/access.db file. The latter is a

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 12:45+0200, Trond Endrestøl wrote: On Fri, 24 May 2013 12:03+0200, Wojciech Puchar wrote: 1. Edit the /etc/mail/access file. 2. Insert a line like this one: To:mail...@some.domain.tld REJECT tried too. doesn't work. Make sure you edit the

Re: stupid question about sendmail

2013-05-24 Thread Claus Assmann
On Fri, May 24, 2013, Trond Endrest?l wrote: [freebsd-hackers doesn't seem like the appropriate list...] FEATURE(access_db, `hash -o -TTMPF /etc/mail/access') Do NOT use -o. Moreover, do not specify arguments that are default. FEATURE(`access_db') is the best choice. One final(?) note: You

Re: stupid question about sendmail

2013-05-24 Thread Trond Endrestøl
On Fri, 24 May 2013 08:34-0700, Claus Assmann wrote: On Fri, May 24, 2013, Trond Endrestøl wrote: [freebsd-hackers doesn't seem like the appropriate list...] FEATURE(access_db, `hash -o -TTMPF /etc/mail/access') Do NOT use -o. Moreover, do not specify arguments that are default.

Re: stupid question about sendmail

2013-05-24 Thread Claus Assmann
On Fri, May 24, 2013, Trond Endrest?l wrote: On Fri, 24 May 2013 08:34-0700, Claus Assmann wrote: FEATURE(access_db, `hash -o -TTMPF /etc/mail/access') Do NOT use -o. Moreover, do not specify arguments that are default. Then I guess the defaults in freebsd.mc should be changed as well:

Re: stupid question about sendmail

2013-05-24 Thread Wojciech Puchar
works fine after your advice. thank you very much. FEATURE(`access_db') FEATURE(`blacklist_recipients') On Fri, 24 May 2013, Claus Assmann wrote: On Fri, May 24, 2013, Trond Endrest?l wrote: [freebsd-hackers doesn't seem like the appropriate list...] FEATURE(access_db, `hash -o -TTMPF