LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-19-2014, 08:24 PM   #1
GrahamVH
LQ Newbie
 
Registered: Apr 2009
Location: USA
Distribution: Red Hat Based Distros
Posts: 22

Rep: Reputation: 0
dovecot/postfix setup issues


Howdy,
I'm attempting to build a local network email server for my personal network. What I need from it is a pop3 interface which I can access via my workstation, and a SMTP interface for it to recieve mail.

I am currently attempting to use dovecot and postfix to accomplish this. Currently dovecot is working (as far as I can tell, my mail client can log in and get mail, and it isn't spewing any Errors to syslog).

postfix's ability to get mail to dovecot, however, isn't working...
Any attempt I make to send mail to an account on the system results in the error:

Code:
send-mail: RCPT TO:<#####@#####> (451 4.3.0 <#####@#####>: Temporary lookup failure)
syslog slows the following:

Code:
Nov 19 19:16:10 ### postfix/smtpd[12940]: warning: hash:/etc/aliases is unavailable. open database /etc/aliases.db: Invalid argument
Nov 19 19:16:10 ### postfix/smtpd[12940]: warning: hash:/etc/aliases lookup error for "##@###.localdomain"
Nov 19 19:16:10 ### postfix/smtpd[12940]: NOQUEUE: reject: RCPT from ###.localdomain[#.1]: 451 4.3.0 <##@###.localdomain>: Temporary lookup failure; from=<root@###.localdomain> to=<##@###.localdomain> proto=ESMTP helo=<###.localdomain>
I have been fiddling with the aliases for a bit any not been getting anywhere. However, running newaliases does nothing.

This setup is on a Fedora 20 system.

Any help would be appreciated.
 
Old 11-19-2014, 10:54 PM   #2
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
Make sure that /etc/aliases exists. If not create it with

touch /etc/aliases
newaliases

Also make sure you have

alias_maps = hash:/etc/aliases

in the /etc/postfx/main.cf
 
Old 11-20-2014, 07:01 PM   #3
GrahamVH
LQ Newbie
 
Registered: Apr 2009
Location: USA
Distribution: Red Hat Based Distros
Posts: 22

Original Poster
Rep: Reputation: 0
The /etc/aliases file exists, and the newaliases command just tells me 'newaliases: In sSMTP aliases are read from a plain text file'
The /etc/postfix/main.cf file also contains the 'alias_maps = hash:/etc/aliases' line uncommented.

So unfortunately that is not the issue.
 
Old 11-20-2014, 07:08 PM   #4
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
Is that the only error in the /var/log/maillog?

send-mail: RCPT TO:<#####@#####> (451 4.3.0 <#####@#####>: Temporary lookup failure)

Take a look at the timestamps and put all the errors in that timeframe here.

Are you using MySQL for your Postfix users?
 
Old 11-20-2014, 09:46 PM   #5
GrahamVH
LQ Newbie
 
Registered: Apr 2009
Location: USA
Distribution: Red Hat Based Distros
Posts: 22

Original Poster
Rep: Reputation: 0
Problem Solved.
I poked around with the aliases a bit more and found that /etc/aliases.db was an empty file. Through some googling I found that my alternatives for mta was set to /usr/sbin/sendmail.ssmtp instead of /usr/sbin/sendmail.postfix.

Once I changed the alternatives, everything worked fine.

Thanks for the help.

run the command 'alternatives --config mta' and choose the postfix option
 
  


Reply


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
several postfix/dovecot issues... enrollTN Linux - Server 0 06-27-2013 02:44 AM
postfix / dovecot help on new setup sir-lancealot Linux - Server 3 03-21-2011 11:57 AM
[SOLVED] postfix/dovecot issues daled Linux - Server 9 08-24-2010 07:22 PM
postfix+dovecot closed community setup _ian_ Linux - Server 2 05-24-2010 02:17 AM
Spamassassin setup with Postfix, Dovecot and Amavisd snurckle Linux - General 2 04-07-2005 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration