Thank you very Jones, it solved the issue after mapping system users to
email address.

On Wed, Jan 27, 2016 at 8:10 PM, Noel Jones <njo...@megan.vbhcs.org> wrote:

> On 1/27/2016 1:21 AM, Amit Bondwal wrote:
> > Hi Everyone,
> >
> > In my postfix mail server, users are able to send mail on name of
> > different domains
> > using from field in mail client software.
> >
> > For eg. I am using sendEmail mail client, and I can send emails with
> > hdfc.com <http://hdfc.com> domain or other too,
> >
> > sendEmail -v -f "a...@hdfc.com <mailto:a...@hdfc.com>" -s
> > "test.example.in:25 <http://test.example.in:25>" -xu "amit" -xp
> > "ami*321" -t "x...@yahoo.co.in <mailto:x...@yahoo.co.in>"  -u "test
> > from sendEmaili 0255" -m "this is sendEmail test"
> >
> > This mail goes to spam and it did not show actual mail address in
> > details header.
> >
> > How Can I restrict my outgoing mails such that it can only send
> > outgoing mails which have my domain  test.example.in
> > <http://test.example.in>? or it would be great if I can map user's
> > too that user can't use other users name.
> >
> > If only first case work that will be sufficient for me.
> >
> > I searched a lot but not able to do this. my postfix version is
> > 2.11.3-1 on debian Jessie. My setup have just postfix with sasl
> > authentication, authentication is working fine.
> >
> >
> > --
> > Thanks
> >
> > Amit Bondwal
> >
> >
> >
> >
>
>
> You can map sasl login names to allowed MAIL FROM names using
> reject_sender_login_mismatch (or the
> reject_authenticated_sender_login_mismatch,
> reject_unauthenticated_sender_login_mismatch variants).
> http://www.postfix.org/postconf.5.html#reject_sender_login_mismatch
>
>
>
>   -- Noel Jones
>

Reply via email to