LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Broken Fetchmail/Postfix - recipient not found (https://www.linuxquestions.org/questions/linux-server-73/broken-fetchmail-postfix-recipient-not-found-484687/)

swilliams2006 09-18-2006 12:20 PM

Broken Fetchmail/Postfix - recipient not found
 
Hi Guys,

I have previously posted this under "General" but thought that this would be a better forum suited to my question...

I have obviously done something to my mail system that I just about managed to get set up several months ago... still not quite sure what I have done. When I try to get mail using fetchmail I get this output:

====
fetchmail: SMTP> RCPT TO:<steve@localhost>
fetchmail: SMTP< 450 <steve@localhost>: Recipient address rejected: User unknown in local recipient table
fetchmail: SMTP error: 450 <steve@localhost>: Recipient address rejected: User unknown in local recipient table
fetchmail: SMTP> RSET
fetchmail: SMTP< 250 Ok
...... not flushed
====

exceprt from output of fetchmail -v -f /etc/.fetchmailrc

When I try to send a test mail to my steve@localhost using a mail client on a windows machine I get the error saying that this address could not be resolved, neither can root, postmaster or any other "valid" local address.

I can access the IMAP mailboxes without problem, and have obviously checked that the steve account exists in /etc/passwd

I really am not sure what I have broken. IIRC it is a Cyrus IMAPd mailbox, with Fetchmail > Postfix. All mail downloaded with fetchmail is set "is steve here"

My /etc/postfix/main.cf
=====
# These are only the parameters changed from a default install
# see /etc/postfix/main.cf.dist for a commented, fuller version of this file.

# These are changed by postfix install script
readme_directory = /usr/share/doc/postfix-2.2.5/README_FILES
html_directory = /usr/share/doc/postfix-2.2.5/html
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/lib/postfix
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq

# User configurable parameters

myhostname = siege
mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost
mynetworks = 192.168.0.0/24, 127.0.0.0/8
home_mailbox = Maildir/
mail_spool_directory = /var/spool/mail
alias_maps = hash:/etc/postfix/aliases
mailbox_command = /usr/bin/procmail -Y -a $DOMAIN
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
manpage_directory = /usr/share/man
debug_peer_level = 1
debugger_command = PATH=/usr/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5
delay_warning_time = 4
#inet_interfaces = localhost
mynetworks_style = host
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandriva Linux)
unknown_local_recipient_reject_code = 450
smtp-filter_destination_concurrency_limit = 2
lmtp-filter_destination_concurrency_limit = 2
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
=====

Can anybody suggest what to look at next? I have already tried googling the SMTP: error 450, it would seem only to return results on the subject of rejecting unknown inbound e-mail rather than resolving this... unless I have missed something!

Thanks,
Steve Williams

swilliams2006 09-18-2006 02:37 PM

Close Thread
 
Hi Guys,

Thanks to everyone that read this thread... I have now resolved the problem, for anybody in the future experiencing similar problems, if you try looking at your /var/log/mail/warnings file, you may find that the mail system is having trouble accessing the user database. This is caused by broken permissions on your /etc/passwd file, I have set mine to CHMOD 744 and this solved the problem.

Thanks again for your time in reading this thread.


All times are GMT -5. The time now is 03:46 PM.