LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-14-2008, 04:02 AM   #1
Proxx
LQ Newbie
 
Registered: Sep 2007
Location: Holland
Posts: 20

Rep: Reputation: 0
Postfix Mail server: Undelivered mail


Hi There,

im collecting mail with fetchmail, and im receiving strange messages:
Code:
#**************************.***************************.*************fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 Ok: queued as 3558C2581F6
 flushed
fetchmail: POP3> DELE 78
fetchmail: POP3< +OK 
fetchmail: POP3> LIST 79
fetchmail: POP3< +OK 79 5975
fetchmail: POP3> TOP 79 99999999
fetchmail: POP3< +OK 
reading message example@pop-demon.****.nl:79 of 2726 (5975 octets)
fetchmail: SMTP> MAIL FROM:<jqyay@quint**iles.com> SIZE=5975
fetchmail: SMTP< 250 2.1.0 Ok
fetchmail: SMTP> RCPT TO:<root@localhost>
fetchmail: SMTP< 250 2.1.5 Ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF>
#*************************.************************.*****************.******fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 Ok: queued as 647012581F6
 flushed
fetchmail: POP3> DELE 79
fetchmail: POP3< +OK 
fetchmail: POP3> LIST 80
fetchmail: POP3< +OK 80 4678
fetchmail: POP3> TOP 80 99999999
fetchmail: POP3< +OK 
reading message example@pop-demon.***.nl:80 of 2726 (4678 octets)
fetchmail: SMTP> MAIL FROM:<jradford-harris@sierraco*llege.edu> SIZE=4678
fetchmail: SMTP< 250 2.1.0 Ok
fetchmail: SMTP> RCPT TO:<root@localhost>
fetchmail: SMTP< 250 2.1.5 Ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF>
#************************.**********************.****************.******fetchmail: SMTP>. (EOM)
2ABDC2581E2 Mon Jan 14 10:02:44 administrator@domain.com detleff@spam. 4.96 kB connect to trans.mercury-spb.com[195.151.163.2]: Connection refused
7B54F2581EB Mon Jan 14 10:02:45 administrator@domain.com barny@spam 4.96 kB connect to pinkponk.com[213.229.249.143]: Connection timed out
98CFD2581E4 Mon Jan 14 10:02:46 administrator@domain.com sepulchers335@spam 3.32 kB connect to mail.bigbang-space.net[222.230.186.73]: Connection timed out
F09522581E1 Mon Jan 14 10:02:46 administrator@domain.com jacob@spam 4.30 kB connect to trans.spam[195.151.163.2]: Connection refused

The inside of the mail is:
Code:
From 	MAILER-DAEMON@domain.com (Mail Delivery System)
To 	detleff@merc***-spb.com
Date 	Mon, 14 Jan 2008 10:02:44 +0100 (CET)
Subject 	Undelivered Mail Returned to Sender

This is the mail system at host domain.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<root@localhost>: mail for localhost loops back to myself
i have to note that all the mail im currently recieving is from the spambox of my provider, since this is a company and we can not tollerate a faillure in the system.

My Server Seems to edit the From: to administrator@example.com
en sending it back to the sender



Code:
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
bounce_notice_recipient = spam@example.com
config_directory = /etc/postfix
empty_address_recipient = administrator@example.com
mailbox_command = /usr/bin/procmail -f- -a $USER
mailbox_size_limit = 0
maximal_queue_lifetime = 1d
mydestination = localhost
mydomain = example.com
myhostname = example.com
mynetworks = 127.0.0.0/8, 172.16.1.0/24
myorigin = /etc/mailname
queue_run_delay = 30s
recipient_delimiter = +
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_mynetworks permit_inet_interfaces reject_unauth_destination
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
i think that fetchmail is srewing up my Mails...
i have one fetchmail account that has to receve for about 100 different account and evry mail goes toe administrator@example.com whot is going wrong...


If you need anything else. just ask

Last edited by Proxx; 01-15-2008 at 09:48 AM. Reason: Changes Made to the system
 
Old 01-14-2008, 07:54 AM   #2
Proxx
LQ Newbie
 
Registered: Sep 2007
Location: Holland
Posts: 20

Original Poster
Rep: Reputation: 0
EDIT -- BUMP :'(

My Bad...

Last edited by Proxx; 01-14-2008 at 08:45 AM.
 
Old 01-14-2008, 08:17 AM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Connection refused usually means something is blocking it, perhaps a firewall on port 25?

And don't bump your thread after 4 hours. Zero replied threads get auto-bumped on this forum on several occasions but then again, without that feature, you should wait at least 24 hours. And if you do still feel inclined to bump your thread, try to mention anything else you tried, more information you might have left out from the first post, etc.

This is a free forum with members helping people like you in their free time. It might be a minute for a response, might be a day, a week, a year or never.
 
Old 01-15-2008, 09:37 AM   #4
Proxx
LQ Newbie
 
Registered: Sep 2007
Location: Holland
Posts: 20

Original Poster
Rep: Reputation: 0
Problem fixed......

the problem with (i think) fetchmail is still the same.

i download all the mail from 1 pop3 account but postfix has to sort them out in different mail boxes. but it looks like fetchmail is changing the deliver address to administrator@localhost(see fetchmail log on top of the page) and not just one mail every mail!! a bit confusing to me.....

hm.. i looked in my postfix Mail Queue and there is the mail with the normal address TO: myname@example.com

the mail box myname@example.com is created and working on postfix

and still the mail is going to administrator@localhost ...
 
Old 01-17-2008, 03:28 AM   #5
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have a look at the "Delivery Control Options" section on the fetchmail manual and see if anything there solves your problem with localhost
 
Old 01-18-2008, 08:20 AM   #6
Proxx
LQ Newbie
 
Registered: Sep 2007
Location: Holland
Posts: 20

Original Poster
Rep: Reputation: 0
Thanx for the reply....

the problem was the config of fetchmail

multidrop was disabled...


in the .fetchmailrc file needed to be aka domainname.com

now everything is working the only thing that is a bit annoying is:

SMTP error: 550 5.1.1 <asdasdSPAM@localhost>: Recipient address rejected: User unknown in local recipient table
for about 400 times a day

but i think i can fix it my self
 
  


Reply

Tags
fetchmail, postfix


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
Need to received mail from postfix to desknow mail server lakshan Linux - Server 0 10-24-2007 06:27 AM
postfix mail server cant receive mail outside LAN shio Linux - Networking 2 10-05-2007 05:01 AM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 02:43 PM
Postfix mail server not accepting incoming mail from the external interface rexmundi Linux - Networking 7 12-22-2003 03:41 PM
Postfix relaying mail to internal mail server tradecraft1 Linux - Networking 2 10-28-2003 03:01 PM


All times are GMT -5. The time now is 04:06 AM.

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