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 25th June 2012, 10:22
danypd69 danypd69 is offline
Junior Member
 
Join Date: May 2012
Posts: 21
Thanks: 2
Thanked 1 Time in 1 Post
Default Disable smtp for a client

Hello, I need to disable the possibility to use smtp to some clients;
Is this possible? I saw that there is a "disablesmtp" field in the mail_user table but it seems that it's not used anywhere.
Reply With Quote
Sponsored Links
  #2  
Old 25th June 2012, 10:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,983
Thanks: 825
Thanked 5,372 Times in 4,219 Posts
Default

You can disable smtp for a client by enabling the "Disablesmtp" field in the mailbox settings. This value is used by postfix and dovecot/courier.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 25th June 2012, 11:09
danypd69 danypd69 is offline
Junior Member
 
Join Date: May 2012
Posts: 21
Thanks: 2
Thanked 1 Time in 1 Post
Default

Do you mean in the web interface? I don't see any Disablesmtp field, only Disable POP3 and Disable IMAP
Attached Images
 
Reply With Quote
  #4  
Old 25th June 2012, 11:14
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,983
Thanks: 825
Thanked 5,372 Times in 4,219 Posts
Default

You're right, the field is named "Enable receiving". Disable that checkbox to disable smtp.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 25th June 2012, 11:16
danypd69 danypd69 is offline
Junior Member
 
Join Date: May 2012
Posts: 21
Thanks: 2
Thanked 1 Time in 1 Post
Default

Ok I will try, but does it disable also smtp receiving? I need to disable the possibility to use my server to send mail only

UPDATE: Tried it but also smtp receiving is disabled.

Any pointer to disable only smtp out ?

Last edited by danypd69; 25th June 2012 at 12:10. Reason: updated
Reply With Quote
  #6  
Old 26th June 2012, 12:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I think you can use transports and route those emails to some non-existing account. See
Code:
man 5 transport
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 26th June 2012, 12:57
danypd69 danypd69 is offline
Junior Member
 
Join Date: May 2012
Posts: 21
Thanks: 2
Thanked 1 Time in 1 Post
Default

Ok I will check it.
Another idea that I had is to refuse authentication to selected usernames but I'm unable to understand fully how smtp authentication works in ISPConfig
Reply With Quote
  #8  
Old 21st October 2012, 19:30
Dehumanizer Dehumanizer is offline
Junior Member
 
Join Date: Oct 2012
Posts: 16
Thanks: 1
Thanked 2 Times in 1 Post
Exclamation Patch to implement this feature

I wanted the same feature, i.e. disable SMTP for certain users but on the other hand don't disable receiving for that account (so it can receive mail).
I have found that the code and data structures for doing that is already there, configuration for disabling and enabling of email receiving and smtp access are separate even in the database, just the frontent is done in a way that checking the "disable receiving" checkbox disables both these features at the same time, I'm not sure why it isn't split into "disable receiving" and "disable SMTP".

So I made a little patch to split these features for ISPConfig 3.0.4.6, I'm attaching the patch file here.

Instructions:
1. save the file to /usr/local/ispconfig/interface/web/mail
2. gunzip disablesmtp.patch.gz
3. patch -p1 -i disablesmtp.patch
4. go to your ISPConfig panel to the user mailbox settings, there should be a new checkbox "Disable SMTP" available.

Notes:
-disabling SMTP does not affect the ability to send email through webmail.
-I have added the checkbox text just for english language, if you are using a different language, you need to add a line "$wb["disablesmtp_txt"] = 'Disable SMTP';" in the corresponding language file <lang>_mail_user.lng file in the /usr/local/ispconfig/interface/web/mail/lib/lang directory where <lang> is the language you want to edit. You can of course translate the "Disable SMTP" string to your language.
If you don't do this and you are using a language other than english, the checkbox will still be there and will work, but will have no caption.

Enjoy!
Attached Files
File Type: gz disablesmtp.patch.gz (1.0 KB, 108 views)
Reply With Quote
The Following 2 Users Say Thank You to Dehumanizer For This Useful Post:
danypd69 (6th November 2012), woosht (16th April 2013)
  #9  
Old 6th November 2012, 18:12
danypd69 danypd69 is offline
Junior Member
 
Join Date: May 2012
Posts: 21
Thanks: 2
Thanked 1 Time in 1 Post
Default

Thanks, I will try it as soon as possible.
Reply With Quote
The Following User Says Thank You to danypd69 For This Useful Post:
soamHowl (20th October 2013)
  #10  
Old 4th March 2013, 10:13
bert bert is offline
Junior Member
 
Join Date: Feb 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Great patch, thanks. I do consider this a bug in ISPconfig, and have filed a report at http://bugtracker.ispconfig.org/inde...s&task_id=2762
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
link my domain to my server, impossible! 007007 Installation/Configuration 7 17th January 2012 13:59
DNS Lookups kieron General 4 4th May 2011 19:49
Can't access to my website - after install problem pallermo Installation/Configuration 18 4th June 2010 13:29
amavis rejects all inbound emails aclhkaclhk Installation/Configuration 5 28th February 2010 04:24
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47


All times are GMT +2. The time now is 01:52.


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