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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-01-2003, 06:05 PM
|
#1
|
Member
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80
Rep:
|
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
|
|
|
12-01-2003, 06:48 PM
|
#2
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
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
|
|
|
12-01-2003, 06:48 PM
|
#3
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
12-02-2003, 12:24 PM
|
#4
|
Member
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80
Original Poster
Rep:
|
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
|
|
|
12-02-2003, 01:28 PM
|
#5
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
12-02-2003, 03:37 PM
|
#6
|
Member
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80
Original Poster
Rep:
|
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
|
|
|
12-03-2003, 09:21 AM
|
#7
|
Member
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80
Original Poster
Rep:
|
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
|
|
|
12-03-2003, 12:11 PM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
12-04-2003, 08:32 AM
|
#9
|
Member
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80
Original Poster
Rep:
|
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.
|
|
|
12-04-2003, 08:35 AM
|
#10
|
Member
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80
Original Poster
Rep:
|
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
|
|
|
12-05-2003, 03:55 AM
|
#11
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|