sendmail or sendmail.postfix

Support and queries relating to third party Live CDs and DVD, VM images and other packaged distributions
Post Reply
michaelng
Posts: 14
Joined: Sat Jul 23, 2005 10:39 am

sendmail or sendmail.postfix

Post by michaelng »

For the life of me, i cannot find these functions anywhere on the latest live cd with Zoneminder 1.21.4. I search various posts and sendmail.postfix were mentioned, but I can't find this anywhere. Is this already on the default installation, if not, can you give me the easiest path for me to add this functionality.

Please le me know.

thanks
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

No, postfix is the default mail server on mandrake, and it is not on the latest livecd.

You can use the package manager to install postfix or sendmail if you prefer. Or from the CLI use "urpmi postfix"

If you simply want email notices from ZM you can use the ZM_NEW_MAIL_MODULES option and the SMTP method. No mail server on the ZM machine is needed.
michaelng
Posts: 14
Joined: Sat Jul 23, 2005 10:39 am

Post by michaelng »

Hi,

Thank you for replying, truely appreciated. So I am a Linux Noob. I downloaded a sendmail package from the internet and even tried to run CLI for urpmi postfix but I can't becuase it tells me that "urpmi database is locked". I tried googling a way to unlock it, but no luck. I tried to go through the user interface of Packages, same thing.

One site fixed it by doing, > lsof | grep urpmi
He was able to find the process causing the headache, but when I tried, nothing is listed--as if its a phantom locked.

btw, i am doubling this server as my webserver and the application uses a php mail function -- sendmail for functionality. Its sort of my test server-security camera.

Do you have a suggestion?

Thanks much.
michaelng
Posts: 14
Joined: Sat Jul 23, 2005 10:39 am

Post by michaelng »

Well, I found others who had the same problem but they were able to delete the locked file or reboot the computer and everything were fine. The referenced deleting:

Code: Select all

/var/lib/urpmi/.RPMLOCK
/var/lib/urpmi/.LOCK
or

Code: Select all

cd /var/lib/rpm
rm -f /var/lib/rpm/__db*
rpm -vv --rebuilddb 
or

Code: Select all

#killall urpmi urpmi.update urpme rpm urpmi.addmedia
#rm -f /var/lib/urpmi/.LOCK /var/lib/rpm/RPMLOCK
Links to forum: http://www.linuxquestions.org/questions ... p?t=322130

The problem is there are no /var/lib/urpmi/; rpm and urmpi is just a link under this directory. Thus, there are nothing to delete and rebuilding database doesn' work since it still claims it can't open the db because it's locked in shared mode.

This is the message i get:

Code: Select all

[user user]$ sudo rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.4754
D: creating directory /var/lib/rpmrebuilddb.4754
D: opening old database with dbapi 3
error: cannot open lock file ///var/lib/rpm/RPMLOCK in shared mode
D: removing directory /var/lib/rpmrebuilddb.4754
Rebooting my computer doesn't help either, so I am not sure what to do at this point. Everything else works great except I wanted to be able to install sendmail onto the server.

any input?

Thank you,
michaelng
Posts: 14
Joined: Sat Jul 23, 2005 10:39 am

Post by michaelng »

I finally got urpmi to run, I deleted the rpm and urpmi link under /var/lib/ which was the culprit to the database lock. I then created a folder rpm and urpmi and then I ran, sudo -vv --rebuilddb. This seems to do the trick, not sure why but it works.

Now I have to figure out how to install sendmail itself.

Thanks
Post Reply