LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 05-18-2011, 06:02 PM   #1
blueduck
LQ Newbie
 
Registered: Jun 2010
Posts: 9

Rep: Reputation: 0
Easy question: how do I get the mail command to work (postfix)


Ok. This is going to seem just downright silly. I'm a little embarrassed to ask it. It's just that the mail command has always just sort of worked on every other system I've used.

This system has postfix installed, which is churning out errors saying "mail transport unavailable" in the mail log. I have a nice SMTP server with a great reputation elsewhere on the internet that I'd like to route all my messages through. Is there an easy way to specify that? It's not really necessary. I'd be happy if I can just get the emails to go out.
 
Old 05-19-2011, 02:27 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,772

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
www.google.com/linux is a great research tool for finding solutions to problems in Linux/Unix. Most problems you encounter have probably already been solved and are reported on the internet. For example, searching for "configuring postfix", the first hit I got was how to set up a mail server.

You specific desire to forward all mail to your smtp server would be handled by the "relayhost=" line in /etc/postfix/main.cf.

You can read more here: http://www.linux.com/learn/tutorials...ix-mail-server

And there is much more to read here: http://www.google.com/linux?hl=en&q=...ix&btnG=Search

It times past, google informed users of the existence of specific search filters (linux, microsoft, macos) at the bottom of the Advanced Search page. They no longer do so, and I can't find where that information might be posted. However, the search filters still exist. They filter out 99% and more of non-related hits.

Last edited by bigrigdriver; 05-19-2011 at 02:28 PM.
 
Old 06-01-2011, 05:33 AM   #3
blueduck
LQ Newbie
 
Registered: Jun 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Still stuck...

I feel like I've tried everything--installing SASL, configuring transport files, etc. All the related threads I've found highlight that it can take days of work to get this working. Just seems like it shouldn't be this hard to send an email.

The latest error suggests that SASL and Postfix are not playing together nicely:
Jun 1 10:04:58 postfix/smtp[21709]: B69E45F974F: to=<hugh@XXX.com>, relay=smtp.XXXX.net[xxx.xxx.xxx.xxx]:25, delay=0.09, delays=0/0/0.09/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.XXX.net[xxx.xxx.xxx.xxx]: no mechanism available)

I'm happy to post logs, config files, package lists, etc, but before cluttering the thread, I'd just love to ask for advice on next steps:
- does anyone have a sample working configs for Postfix on Fedora? /etc/postfix/main.cf, /etc/postfix/sasl_password (pws stripped of course), /etc/postfix/transport, /etc/sysconfig/saslauthd, /use/lib64/sasl2/smtpd.conf, relevant packages (do I need cyrus?), etc

- is there a premium support forum where I can pay someone for their expertise so that I don't spend my next few weekends working through this issue?

Thanks for the help so far. Any additional insights would be much appreciated.

Some of the more helpful resources I reviewed include (all discovered through the great google.com/linux suggestion from bigrigdriver):
http://www.linuxquestions.org/questi...ration-585147/
http://linuxgazette.net/142/pfeiffer.html
http://www.marksanborn.net/linux/sen...tu-lts-server/
 
  


Reply

Tags
mail, postfix, smtpd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail (mailserver) -- sending mail with the mail command -- doesn't work :-( carolinevdh Linux - Server 1 08-13-2009 09:43 PM
Easy postfix quarantine/spam e-mail browsing tomazN Linux - Software 1 07-20-2007 09:50 AM
Linux command mail question very easy for you not for me ! zonemikel Linux - Newbie 1 09-25-2006 11:59 AM
I cant get postfix to send with mail command roller24 Linux - Newbie 1 11-28-2005 03:21 PM
Easy question on mail jkcunningham Linux - Networking 11 08-20-2003 11:34 AM


All times are GMT -5. The time now is 09:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration