Limited relay posibilities

This is a discussion on Limited relay posibilities within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hi I'm trying to set up a mail-server for a group of people. The users of this mail-...


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 10-21-2007
Poul Lindholm Christiansen
 
Posts: n/a
Default Limited relay posibilities

Hi


I'm trying to set up a mail-server for a group of people.

The users of this mail-server are not local users on my Linux-box and we
cannot work with authentication, (for a number of somewhat stupid reasons).

It is not my intent to allow for any unauthorised use of this mail-server.

I've been able to set up postfix to receive e-mail for
"virtual_mailbox_domains". The users ("virtual_mailbox_maps") can collect
their e-mail using pop3 or IMAP. I'm using dovecot for that part.
This works just fine.

When the users try sending e-mail they also needs to use this e-mail server
as their SMTP server.
This causes the problem, as Postfix rejects any mail not comming from my
local network, or that is for any domain that have not been listed as a
"relay_domains".

Now I want to be able to allow anyone that is sending from a
"virtual_mailbox_maps" valid e-mail to send e-mail to any domain.

Can anyone please help me achieve this without using authentication?

--
Hilsen

Poul

Reply With Quote
  #2 (permalink)  
Old 10-22-2007
Klaus Zerwes
 
Posts: n/a
Default Re: Limited relay posibilities

Poul Lindholm Christiansen wrote:
> Hi
>
>
> I'm trying to set up a mail-server for a group of people.
>
> The users of this mail-server are not local users on my Linux-box and we
> cannot work with authentication, (for a number of somewhat stupid reasons).
>
> It is not my intent to allow for any unauthorised use of this mail-server.
>
> I've been able to set up postfix to receive e-mail for
> "virtual_mailbox_domains". The users ("virtual_mailbox_maps") can
> collect their e-mail using pop3 or IMAP. I'm using dovecot for that part.
> This works just fine.
>
> When the users try sending e-mail they also needs to use this e-mail
> server as their SMTP server.
> This causes the problem, as Postfix rejects any mail not comming from my
> local network, or that is for any domain that have not been listed as a
> "relay_domains".
>
> Now I want to be able to allow anyone that is sending from a
> "virtual_mailbox_maps" valid e-mail to send e-mail to any domain.


set up smtpd_recipient_restrictions the way you need it.

But your complete setup is crappy!
As soon as someone knows a valid address he may use your server to
spread his farts and your server will soon be blacklisted.

> Can anyone please help me achieve this without using authentication?


If you server is reachable from the bad internet you should use auth or
at least popbeforesmtp (have a look at drac).

Klaus


--
Klaus Zerwes
http://zero-sys.net
Reply With Quote
  #3 (permalink)  
Old 10-22-2007
Martin Gregorie
 
Posts: n/a
Default Re: Limited relay posibilities

Poul Lindholm Christiansen wrote:
>
> Now I want to be able to allow anyone that is sending from a
> "virtual_mailbox_maps" valid e-mail to send e-mail to any domain.
>
> Can anyone please help me achieve this without using authentication?
>

Two thoughts:
- if your users are on fixed IPs you could look into using 'mynetworks'
to restrict users by their IP
- as above, but use your firewall rules and/or /etc/allow and /etc/deny
to restrict access by IP as well.
- if you implemented a VPN (virtual private network) would that gain you
anything? Combining a VPN with a private DNS service may allow you to
group all VPN members into a private domain that isn't visible outside
the VPN but that would allow you to restrict access by using
'mydomain'.

I haven't tried any these approaches )(I have no need to do what you're
trying) but they are things I would investigate if I wanted to do the
same thing.

I agree with Klaus: anything that will leave your MTA exposed to abuse
is a bad idea. Don't expose anything, even experimentally, to the public
'net until you've verified that it is secure.


--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
Reply With Quote
Reply


Thread Tools
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

vB 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 11:24 AM.


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