Postfix - Howto prevent spoofing of local enmail address by sasl users?

This is a discussion on Postfix - Howto prevent spoofing of local enmail address by sasl users? within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; I'm trying to setup remote access using sasl, so that users can send/receive mail remotely using Outlook. At ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2005
Martin White
 
Posts: n/a
Default Postfix - Howto prevent spoofing of local enmail address by sasl users?


I'm trying to setup remote access using sasl, so that users can send/receive mail remotely using
Outlook. At present they only have webmail access.

I'm using smtpd_sender_login_maps to prevent them sending mail with anything other than their
authorised email address. This works fine if they are sending email to an offsite address, however
they appear to be able to use any "from" address they like if they are sending mail to a user in the
local domain.

How can I prevent them from doing this, i.e. restrict their from address to what's coded in
/etc/postfix/smtpd_sender_login_map regardless of whether they are sending to a local or remote
user.

Extract from my main.cf below:

-------------------------------------------------------------------------------------------

#
# Enable sasl authentication
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes

#
# Restrict who can relay email via us
#
# 1) Users logged in remotely via SASL
#
# 2) Users local to mgw.org.uk (e.g. Webmail)
#
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination

#
# Sender Restrictions
#
# 1) If logged in via SASL can only send mail from the address(s)
# registered to the user in smtpd_sender_login_maps
#
# 2) Any users on the mgw.org.uk subnet can do what they like.
#
smtpd_sender_login_maps = hash:/etc/postfix/smtpd_sender_login_map
smtpd_sender_restrictions =
hash:/etc/postfix/access,
permit_mynetworks,
reject_sender_login_mismatch

-------------------------------------------------------------------------------------------

Regards,
Martin

Reply With Quote
  #2 (permalink)  
Old 05-07-2005
Lech PEDZIWIATR
 
Posts: n/a
Default Re: Postfix - Howto prevent spoofing of local enmail address by sasl users?

Martin White wrote:

>
> I'm trying to setup remote access using sasl, so that users can
> send/receive mail remotely using Outlook. At present they only have
> webmail access.
>
> I'm using smtpd_sender_login_maps to prevent them sending mail with
> anything other than their authorised email address. This works fine if
> they are sending email to an offsite address, however they appear to be
> able to use any "from" address they like if they are sending mail to a
> user in the local domain.
>
> How can I prevent them from doing this, i.e. restrict their from address
> to what's coded in /etc/postfix/smtpd_sender_login_map regardless of
> whether they are sending to a local or remote user.
>
> Extract from my main.cf below:
>
>

-------------------------------------------------------------------------------------------
>
> #
> # Enable sasl authentication
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_local_domain =
> broken_sasl_auth_clients = yes
>
> #
> # Restrict who can relay email via us
> #
> # 1) Users logged in remotely via SASL
> #
> # 2) Users local to mgw.org.uk (e.g. Webmail)
> #
> smtpd_recipient_restrictions =
> permit_mynetworks,
> permit_sasl_authenticated,
> reject_unauth_destination
>
> #
> # Sender Restrictions
> #
> # 1) If logged in via SASL can only send mail from the address(s)
> # registered to the user in smtpd_sender_login_maps
> #
> # 2) Any users on the mgw.org.uk subnet can do what they like.
> #
> smtpd_sender_login_maps = hash:/etc/postfix/smtpd_sender_login_map
> smtpd_sender_restrictions =
> hash:/etc/postfix/access,
> permit_mynetworks,
> reject_sender_login_mismatch
>
>

-------------------------------------------------------------------------------------------
>
> Regards,
> Martin

....
Look at "sender_login_mismatch"...
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:09 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0