LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Squirrel Mail and Post Fix (https://www.linuxquestions.org/questions/linux-software-2/squirrel-mail-and-post-fix-121734/)

bigdogg 12-01-2003 05:05 PM

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

mcleodnine 12-01-2003 05:48 PM

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

MasterC 12-01-2003 05:48 PM

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

bigdogg 12-02-2003 11:24 AM

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

MasterC 12-02-2003 12:28 PM

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

bigdogg 12-02-2003 02:37 PM

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

bigdogg 12-03-2003 08:21 AM

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

MasterC 12-03-2003 11:11 AM

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

bigdogg 12-04-2003 07:32 AM

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.

bigdogg 12-04-2003 07:35 AM

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;)

MasterC 12-05-2003 02:55 AM

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


All times are GMT -5. The time now is 12:31 AM.