Help with Postfix on Ubuntu Server

Hi. I am trying to get notification set up for nagios and in order to do that I have installed Postfix on the ubuntu server. I would like to either relay the email through our local exchange server or gmail (whichever is easier to configure on the linux side). I have gone through numerous tutuorials, etc but everytime I try to enter half of the commands (i.e.sudo postmatp hash:/etc/postfix/sas_password or even mailq) i get the error below.

postmap:fatal: bad string length 0 < 1:setgid_group =

I am lost and just want to get the these nagios email notifications working..Someone please help : )

Kind Regards

Lacy
LVL 4
Llacy80Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

andrevanzuydamCommented:
Lacy, if you can install Webmin on your box, it has a real easy to use interface for Postfix configuration.  It can manage the installation and configuration. What you need to do is download the deb file and sudo dpkg -i webmin....deb from command line.  

You will probably need to do a sudo apt-get install -f afterwards to update its dependencies.

Once this is done you can login to your machine on port 10000 and you'll find the Postfix configuration under servers.

I would suggest starting there and then have a look at this:

http://exchange.nagios.org/directory/Addons/Configuration/Nagios%252DAdmin-Webmin-Module/details

A Webmin module to configure nagios.  It can be loaded under the Webmin configuration.  I recommend Webmin because I hate running around in the console trying to configure servers and remember all the commands to initialize and build config files, or initialize database engines.

Hope this helps

Andre
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Llacy80Author Commented:
I will try that out and post back when I am done. Thank you for the information.
0
Llacy80Author Commented:
Hi. I installed webmin and when I go to servers and then Postfix, it says the following:

postfix: fatal: bad string length 0 < 1: setgid_group =


Can you guide me in just removing postfix and reinstalling it? I guess I mainly need help with removing it.

0
andrevanzuydamCommented:
sudo apt-get --purge remove postfix

should do the trick, then install postfix from within webmin, it automates the installation
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.