0

I want to use my postfix mail server from anywhere , so i need to apply relaying for 0.0.0.0..... but i want that only using my domain and my local user can only relaying with my mail server from outside...how can i do this in POSTFIX???

Thanking you, sadiq Ali.

2 Answers 2

2

You need to implement SMTP auth. Here is a good howto

main.cf:

 smtpd_sasl_auth_enable = yes
 smtpd_sasl_local_domain = myserver
 broken_sasl_auth_clients = yes
 smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject 
1
  • +1 Agreed... Setting up as an open relay is not the answer, just setup SMTP AUTH and you can send through your server from anywhere simply by authenticating yourself. Oct 1, 2009 at 12:23
1

I would strongly consider setting up some kind of relaying via a VPN or SSH redirection so you don't need to relay from 0.0.0.0. That's opening a whole can of worms for the possibility of becoming a relay for others accidentally.

For example, if you're using a notebook computer, you could set up SSH to redirect local ports on the notebook to your SSH server on your home system, then you just run SSH first to create the redirects then configure your local mail client to connect to localhost for sending and getting mail. All traffic is encrypted between you and your server.

Or install and configure a VPN client on the server and notebook to connect to your home network.

There are bootable environments that you can take with you if you are looking at using computers from other locations that you don't own if you need to do some "custom" access from systems that aren't yours, depending on the situation, or you can set up a form of webmail to be served off your computer so you aren't exposing the mail server itself to remote relaying, you'd be doing it all from your webmail interface.

1
  • An SSH tunnel also has the advantage that the transfer can be compressed; often 8-bit messages and attachments are encoded as base64, and gzip can deal with that (6 point something bits per digit); plain text/html parts are even more compressible. Oct 3, 2009 at 20:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .