Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Recently moved to a new server. Moved the alias file over from the old server. everytime something is sent to one of the aliases it returns a 550 error, user unknown, even returns the 550 error from the .forward file if that is utilized. There is sendmail and posfix on this machine with alias files sitting in both, don't know if that has anything to do with it or not. I've even turned off the firewall thinking that might be a problem. I have gone over the users and groups, I have read through the postfixconfig file and made changes to that and restarted sendmail every time. I'm clueless.
Ok, thanks, I think this is exactly what I need to clarify, because the person that set up the server isn't around.
Postfix is sitting there but must not be running because when I do a postfix command service postfix restart I get an error, so I know sendmail is running because I can see it when I do jobs -l, but I wasn't sure how the two interfaced if at all. so it must be the mail config file that I need to edit, is that right ?and so what is the best way to handle this? Can anyone help me??
and yes, I have run new aliases after all changes.
Personally, I'd drop sendmail since you aren't really needing to use it over Postfix, and bring up postfix. Once that's done, I think you'll have a much better time, not only that but it's been noted as being more secure out of the box, as well as giving you a performance gain to boot.
Ok, it doesn't matter to me really, I know how to turn off sendmail, but how do I turn on Postfix? I'm assuming it uses the same users and the only difference is the alias file which I can change in the main.cf file
I've just been assuming... Which distro are you running? I was thinking Redhat, if so, what release. The reason I was thinking RH was because they have both Postfix and Sendmail as mail server options and you can switch back and forth, since you were talking about both like they were interelated, I figured RH.
Mandrake normally comes default with Postfix. However, that's beside the point now.
Let's fire up a terminal as root and type:
urpmi postfix
And it should prompt for some discs to get it installed. Once it's done, it's just a matter of setting up the /etc/postfix/main.cf to your needs, setting up the /etc/postfix/aliases to your desires, and:
postalias /etc/postfix/aliases
newaliases /etc/postfix/aliases
postfix reload
And you are on your way
I followed the directives and turned sendmail off, installed postfix moved the alias file over and reloaded postfix with no errors and I did the postalias thing, in the order outlined in MasterC's last post.
when I did newaliases /etc/postfix/aliases it complained the "no recipient needed for newaliases" so I just did newlaliases and then it didn't complain.
HOWEVER:
when I went into pine and tried to send a test message I got an error "421 smtp greeting failure"
And also when I went into the Mandrake Control Center it said postfix wasn't running even though I had just started the service from the terminal window. so I started it through the Control Center just to be sure, then went back to pine and tried to send a message and got the "421 smtp greeting failure" again
what does that mean, what is broken and where do i fix it?????
Ok, after you start postfix (or attempt to) look at 2 things:
top
To see if it's running (or alternatively:
ps aux )
And then at your logs to see any errors. If top or ps shows it's running, and you don't find any errors in your logs, then try another mail program to see if it's just the client (not the server) giving you issues.
I got it to work!!!! I commented out the problematic lines in the main.cf file and stayed with the default and it worked!!!!
I restarted and sent a message with pine and I didn't get any error and I received the message. Yahoo, now I have to see if the alias file works correctly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.