LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2003, 06:05 PM   #1
bigdogg
Member
 
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80

Rep: Reputation: 15
Squirrel Mail and Post Fix


http://www.linuxquestions.org/questi...360#post629360


Ok I'm able to sign in with mutiple users and they can receive their mail but when they send mail it's going out with my domain name rather then their domain name? Please see the above link to help with my question. I can't figure out how to set it up when a user send's mail it's coming from their domain name?

Thanks
BiG
 
Old 12-01-2003, 06:48 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
You could either use different Vhost docroot directories or you could have a look at the various virtual users plugins available from the sqiuirrelmail site. it the latter case users would login to their mailbox with user@virtual.domain
 
Old 12-01-2003, 06:48 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
In the "Options" "Personal Information" they can adjust where the email is sent from and who to reply to, in there, they can change it to come from their domain.

Cool
 
Old 12-02-2003, 12:24 PM   #4
bigdogg
Member
 
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80

Original Poster
Rep: Reputation: 15
MasterC has the easy way out I will go that route considering I have only three domain and four users! Thanks for all the help and advise! Also what would be the best way to back up everyone's mail? I was thinking about buring all the folders under /home directory to CD would this work? And would this save their user contacts they saved inside of Squirrelmail? Or do I have to burn the Squirrelmail directory to CD too?

Thanks Again,

BiG
 
Old 12-02-2003, 01:28 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
It's all in Squirrelmail's config. You can choose where the addressbook lives. I personally love the perl script that comes with it. If you enter the squirrelmail directory, then:
perl config/conf.pl
It |should| start the config, and you can adjust the settings from there and see whats available. As for backing up the user's email, yes it should be inside their home directories (you can always check to be sure though, likely it's in a maildir .maildir or Maildir within the user's home dir), you'll want to make sure the burn will maintain proper permissions; search the board for info on using tarball backups instead, this is one [better/easier] way to maintain permissions and maybe even save some space if it becomes an issue.

Cool
 
Old 12-02-2003, 03:37 PM   #6
bigdogg
Member
 
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80

Original Poster
Rep: Reputation: 15
Nice utility!! Ya everyone's home directory has a mail folder with their inbox and subfolders. I ran the *.pl script but I still couldn't see where the address books were being saved? I just *.tar the /home directroy and burnt it to cd hopefully that would be enough? Is there a program out there that will write data at a scheduled time each week to a CD/RW. That would be nice so it would back up data on it's own

Thanks,

BiG
 
Old 12-03-2003, 09:21 AM   #7
bigdogg
Member
 
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80

Original Poster
Rep: Reputation: 15
Sorry I had to bump myslef But I still can't find out what file to backup for users address books in squirrelmail. I tar'ed the /home directory so I have all their mail backedup but I also want to backup their address books. And is there an automated software to tar directries on a scheduled date?

Thanks,

Carlo
 
Old 12-03-2003, 12:11 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
As for backin up routinely, there are a few options. If you check the forums many people will post up their style of doing routine backups so you can feel free to choose the one that suites you best. Just to let you get a feel for the basic idea:
cron is a tool that allows you to do scheduled tasks at specified intervals:
man cron OR
man crontab
should give you more info on that. So you can do something along the lines of creating a script that tars the directories in question and place it in say, your cron.weekly directory (if you have one) in /etc And then once a week (to find out the exact day and time login as root and type:
crontab -l
)
it will execute the script. You will of course want to test your script first to make sure it suffices and actually works.

Now, the addressbook...

In the squirrelmail directory:
data/username.abook
Should contain the info for each users addressbook. But that's default. If you have done LDAP or something else non-standard, then it'll be in your addressbook info in the perl script above.

HTH

Cool
 
Old 12-04-2003, 08:32 AM   #9
bigdogg
Member
 
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80

Original Poster
Rep: Reputation: 15
You are the master I shall take a look into cron and try to develop a script to tar the certain directories I need to backup! Do you have any link on how to create the script? I shall man on cron and take a better look into this scheduling service. Thanks again for your help.
 
Old 12-04-2003, 08:35 AM   #10
bigdogg
Member
 
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80

Original Poster
Rep: Reputation: 15
My squirrelmail is placing the files in /var/lib/squirrelmail/prefs/username.abook. This was the default install for redhat 9. Atleast I found the directory
 
Old 12-05-2003, 03:55 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Odd, but glad you found it!

As for the cron job script, I'm by far no "scripter" but here's some knowledge for ya:
You don't have to be all fancy and put a bunch of "else, if, and, not" crap in there. You can simply throw up a command (I usually use full path in my scripts) and the arguments I want to add, one line at a time, save it as something easy to remember what it is (Like tarbackup) in the cron.weekly directory, and chmod 750 it (executable) chown it to root, and be done. Here's an example if you wanted to list all files in /tmp and then remove them (although this would be of no use, it's simply for example of how to write a script):
ls -lha /tmp
rm -rf /tmp/*

And that's it. See how it's straight forward. No worries, have fun, and good luck.

Cool
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squirrel mail help please krayz1e Linux - Newbie 5 05-31-2005 12:55 AM
Squirrel Mail Ornery_Boy Linux - Software 2 05-19-2005 10:50 AM
Post fix can recv mail from outside but cant send. luvonmik Linux - Networking 1 03-30-2004 12:07 PM
Squirrel Mail LeniuNYC Linux - Software 11 03-07-2004 01:47 PM
squirrel mail depaul Linux - Newbie 7 02-26-2004 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration