On 2010-04-17 Israel Garcia wrote:
> So, if I test sending mail using mail command or mutt rules does not
> work, but, if I use telnet or nc to connect to localhost on 25/tcp
> port rule works. Simple question, WHY?

Because mutt et al. submit their mail via pickup, not via smtpd, and
smtpd_*_restrictions don't apply to pickup.

> How can I restrict my server to send mail TO u...@domain?

# /etc/postfix/main.cf
transport_maps = hash:/etc/postfix/transport

# /etc/postfix/transport
u...@domain   :
*             error:destination prohibited

Regards
Ansgar Wiechers
-- 
"Abstractions save us time working, but they don't save us time learning."
--Joel Spolsky

Reply via email to