LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix Mail server: Undelivered mail (https://www.linuxquestions.org/questions/linux-server-73/postfix-mail-server-undelivered-mail-613436/)

Proxx 01-14-2008 04:02 AM

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 :confused:



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:)

Proxx 01-14-2008 07:54 AM

EDIT -- BUMP :'(

My Bad...

trickykid 01-14-2008 08:17 AM

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.

Proxx 01-15-2008 09:37 AM

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 ...

billymayday 01-17-2008 03:28 AM

Have a look at the "Delivery Control Options" section on the fetchmail manual and see if anything there solves your problem with localhost

Proxx 01-18-2008 08:20 AM

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 :cry:

but i think i can fix it my self :eek:


All times are GMT -5. The time now is 01:59 AM.