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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th September 2007, 22:49
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 7 Times in 5 Posts
Default A question about squirrelmail + ispconfig

Hi all,

I am using Squirrelmail with ispconfig. I am not using the plugin, but insead I have a website directory with the squirrelmail installation. It is working well, but I have an issue. Every time I create an user when the user sends an email the from: header would have something like this:
mydomain.com_prueba@localhost.mydomain.com

I can solve this problem in squirrelmail changing the profile of the user and putting there the complete name and the real email. Is there a way I can do this using the data saved on ispconfig when I create a new user?

BTW, I am using CentOS 4 and the rpm version of squirrelmail
Reply With Quote
Sponsored Links
  #2  
Old 5th September 2007, 09:35
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

This should be possible. But you will have to write a custom squirrelmail plugin for this that does a lookup for the cirrect email address in the ISPConfig sql database.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 6th September 2007, 22:11
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 7 Times in 5 Posts
Default An idea

Thank you till for your fast response.

I was thinking that the easiest way to do it (at least for me) is to the hack on ispconfig everytime a user is created.

For example, after the user is created it should call a shell script like this:
Code:
./config_user domain.com_user "Full Name" user@domain.com
The shell script would look like this
Code:
#!/bin/bash
data_dir=/var/www/squirrelmail.domain.com/data
cat $data_dir/default_pref > $data_dir/$1.pref
echo full_name=$2 >> $data_dir/$1.pref
echo email_address=$3 >> $data_dir/$1.pref
#chown apache:apache $data_dir/$1.pref
I comment out the last line of the scirpt because it was necessary from a shell, but running the script won't from php would run the script as apache and there is no need to change the privileges.

So my question would be, where should I call this script from ISPConfig. I want to call it every time a new email user is created. Hope you can help me.

Thanks again,

Rafael
Reply With Quote
  #4  
Old 7th September 2007, 08:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

You may add it to the function user_insert in the file /home/admispconfig/ispconfig/lib/classes/ispconfig_isp_user.lib.php
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
rafael-ec (7th September 2007)
  #5  
Old 7th September 2007, 18:54
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 7 Times in 5 Posts
Default

Thanks a lot I would give it a shot. All thou I found a pluggin for squirrelmail that would ask the user for the name and the email if the user has not set this up.

Thanks again for your great support.
Reply With Quote
  #6  
Old 7th September 2007, 23:49
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 7 Times in 5 Posts
 
Default

I find a better solution and posted here:
http://www.howtoforge.com/forums/sho...5674#post85674
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
ISPConfig 2.2.13 released till General 35 23rd July 2007 16:28
ISPConfig installation question: German text in English Installation. AdamR Installation/Configuration 5 1st June 2007 09:47
Debian Sarge - ISPConfig question emurray1122 General 1 6th January 2007 15:42
ISPConfig 2.3.1-dev released till General 0 8th May 2006 22:18
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16


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


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