Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 May 2013 09:37:44 +0200 (CEST)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: stupid question about sendmail
Message-ID:  <alpine.BSF.2.00.1305240936340.72982@mail.fig.ol.no>
In-Reply-To: <alpine.BSF.2.00.1305240931470.14121@wojtek.tensor.gdynia.pl>
References:  <alpine.BSF.2.00.1305240931470.14121@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--2055831798-550610177-1369381064=:72982
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT

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 x@y.pl should be rejected.
> 
> tried access.db -
> 
> 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

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
--2055831798-550610177-1369381064=:72982--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1305240936340.72982>