Adding local users to exim4
hello all,
i'm currently running debian 3.1 with the 2.4 kernel as an ftp server for my school district. i also have allowed ssh access to it through the firewall, so i or any other admin can admin the box. we often need to share log file information, but find it cumbersome to copy and paste and send in an e-mail. i had initially installed exim4 to the box, but never gave it any thought until now. the only problem is that only my user, and one other user (who gave me the idea) have a mailbox under /var/mail. i haven't found anything online regarding local accounts (from what it seems, no one else has had this trouble, or the users are automatically added). is there a way i can create user accounts for some or all of the users on this box...? thanks, q. |
the best thing to do is just rerun
/usr/sbin/eximconf as root otherwise i think we need to see /etc/exim.conf |
ok...there is no /usr/sbin/eximconf or /etc/exim.conf...possible version mismatch (i'm using exim4 and commands are for exim3...?) or maybe differences in distros...who knows...anyhooo
tried "dpkg-reconfigure exim4-config" to see if the configuration would correct itself...no dice... i like to mail someone using "cat | mail username" creating a message using standard input...and a control-d to break. it won't create a user in /var/mail/ this way...but if i simply use "mail username" it will create their mailbox for them....hmmmm.... i've looked to update the exim4.conf...but...from as best as i can find...i only have /etc/exim4/ with several folders in it.... Code:
Box-name:/usr/sbin# ls /etc/exim4 Code:
Box-name:/usr/sbin# ls /etc/exim4/conf.d/ Code:
Box-name:/usr/sbin# grep .conf /etc/rc5.d/S20exim4 Code:
Box-name:/usr/sbin# grep /usr/lib/exim4 /etc/rc5.d/S20exim4 this was also mentioned: Code:
Box-name:/usr/lib/exim4# ls /var/lib/exim4/ thanks, q. |
hi,
your config file is split into all it's component peices in /etc/exim4/conf.d/ but yea i think that command "cat | mail" is a little strange - i mean you are piping stdout (or any possible stderr) to BSD mail ? certainly thats not what mail expects. it's looking for it's junk like Cntrl. D and stuff. So i bet that's just causing an error. |
yah...that does make sense...but...its just another way of doing it...it works fine when the user is configured under /var/mail...this way i can copy my configuration to stdout by using the middle mouse and then control D to break it and send it...but...thats the beauty of linux...so many ways to do one thing...
i was just looking for a script or maybe a dpkg-reconfigure command to execute to read the local machines users and create a mail account for them under /var/mail...expecially since i have the box set up just to act as a local mail server for itself... i dunno...maybe i'll tinker more...it gives me something to do... thanks, q. |
I realize this is an older post, but I was wondering if anyone has found an answer to it. I just finished an install of Debian Sarge with Exim4 for corporate email and noticed that there is only one user listed under /var/mail/ - me. How do I get the rest of the mailboxes setup for all of the domain users? I tried the "mail username" line listed above, but no help. Anyone have any ideas?
|
All times are GMT -5. The time now is 12:00 AM. |