Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th September 2009, 19:28
lunardi lunardi is offline
Member
 
Join Date: Dec 2006
Location: Brazil
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to lunardi
Default emails that can only send to the same domain

Hy All,

I need help...

I have some emails that can only send to the same domain.
E.g:

teste1@domain.com - just send domain @domain.com
teste2@domain.com - just sendn domain @domain.com
teste3@domain.com - allow send all domain
teste4@domain.com - allow send all domain

My ISPConfig is verison 3.0.1.4

Thanks
__________________
Lunardi
Reply With Quote
Sponsored Links
  #2  
Old 30th September 2009, 09:17
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,573
Thanks: 792
Thanked 4,980 Times in 3,901 Posts
Default

Please enable SMTP authentication in your email client.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 30th September 2009, 15:38
lunardi lunardi is offline
Member
 
Join Date: Dec 2006
Location: Brazil
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to lunardi
Default emails that can only send to the same domain

Hy Till,

All accounts email are set up so ... with SMTP authentication.
note: I use virtual domains and all too with SMTP authentication.

I need is:
that, some accounts of e-mails can only send to the same domain.

E.g.:
teste1@domain.com - just send domain @domain.com
teste2@domain.com - just sendn domain @domain.com
teste3@domain.com - allow send all domain
teste4@domain.com - allow send all domain

Thanks again.
__________________
Lunardi
Reply With Quote
  #4  
Old 30th September 2009, 18:12
Mccy_McFlinn Mccy_McFlinn is offline
Junior Member
 
Join Date: Mar 2008
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,

This can be achieved by using restriction classes. This allows us to define certain addresses that can only send to certain domains/receipients whilst allowing everyone else to send to any legitemate destination.

Below is a quote from the Postfix website that outlines how to achieve the setup you require:

Quote:
/etc/postfix/main.cf:
smtpd_recipient_restrictions =
check_sender_access hash:/etc/postfix/restricted_senders
...other stuff...

smtpd_restriction_classes = local_only
local_only =
check_recipient_access hash:/etc/postfix/local_domains, reject

/etc/postfix/restricted_senders:
foo@domain local_only
bar@domain local_only

/etc/postfix/local_domains:
this.domain OK matches this.domain and subdomains
that.domain OK matches that.domain and subdomains
Let me know if you have any issues or questions with this setup or if it proves ineffective/inappropriate.

Thanks

**EDIT** Sorry forgot to add the original Postfix page to offer some background on the subject http://www.postfix.org/RESTRICTION_CLASS_README.html
Reply With Quote
  #5  
Old 30th September 2009, 23:32
lunardi lunardi is offline
Member
 
Join Date: Dec 2006
Location: Brazil
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to lunardi
 
Smile emails that can only send to the same domain

Hy Mccy_McFlinn,

I performed according with link (http://www.postfix.org/RESTRICTION_CLASS_README.html) and worked.

Thanks.
__________________
Lunardi
Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix can not send other domain mevtc Installation/Configuration 1 10th February 2009 18:11
Can not send mail out to any outside domain Txchaser Installation/Configuration 11 14th April 2008 15:31
Unable to send emails out. Local delivery ok beeman Installation/Configuration 2 4th February 2008 00:53
Postfix can send Emails - but cann't receive any ilchubby Server Operation 1 3rd February 2008 19:07
Send emails with inline images claudio Programming/Scripts 2 25th April 2005 11:42


All times are GMT +2. The time now is 18:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.