[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Postfix - Undelivered Mail Returned to Sender



Ciao, ritorno alla carica con il mio problema. Visto che mi manca poco a risolverlo ... penso
Ho registrato un mio dominio menegatti.eu presso register.it
Il dominio è attivo.
register.it mi ha fornito anche due indirizzi mail che io ho creato, uno di questi è simone@menegatti.eu Volevo con il mio debian riuscire a gestire la posta di quel dominio menegatti.eu per poi distribuirla localmente con i pc che ho in rete.
Dovrebbe essere tutto fattibile.
Ecco cosa ho fatto.

Ho installato postfix + courier imap + fetchmail + procmail

Ecco il main.cf di postfix
queue_directory = /var/spool/postfix
# il possessore dei processi di postfix
mail_owner = postfix
# la directory di spool di default, dove finiscono le mail in arrivo
mail_spool_directory = /var/spool/mail
# il programma usato per lo smistamento locale delle mail
mailbox_command = /usr/bin/procmail
# il banner riportato da postfix quando lo si contatta
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
#Directory della cosa di Postfix
queue_directory = /var/spool/postfix
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
# il nome completo del host, compreso il dominio. Deve essere un nome valido. FQDA
myhostname = debian.menegatti.eu
# il nome del dominio
mydomain = menegatti.eu
alias_maps = hash:/etc/aliases
#myorigin = il nome che sta dopo la @
myorigin = /etc/mailname
alias_database = hash:/etc/aliases
# elenco dei domini che postfix considererà locali, verranno smistate le mail direttamente senza interpellare l'esterno
mydestination = $myhostname, localhost.$mydomain, $mydomain
relayhost = [mail.libero.it]
mynetworks = 127.0.0.0/8 192.168.0.0/16
mailbox_command = procmail -a "$EXTENSION" DEFAULT=$HOME/Maildir/ MAILDIR=$HOME/Maildir
mailbox_size_limit = 0
#0 = grandezza infinita
recipient_delimiter = +
#inet_interfaces = loopback-only
#su quali schede di rete ascolta. all  = tutte
inet_interfaces = all

****************************
Poi visto che utilizzo una linea di libero infostrada mi son configurato fetchmail per scaricare la mail da menegatti.eu
ecco il file in /etc/fetchmailrc
poll pop.menegatti.eu timeout 60 with proto POP3
user "simone@menegatti.eu" there
with password "xxxxxxxx"
is simone here options fetchall

cosi facendo dovrei riuscire a scaricarmi in locale le mail di simone@menegatti.eu e girarle all'utente simone di debian
Sbaglio?

**********************

TEST DI INVIO. Mail da root a simone@menegatti.eu

debian:/etc# mail simone@menegatti.eu
Subject: prova invio
ciao
.
Cc:
debian:/etc#

Ecco il mail.log
Sep 8 11:46:27 localhost postfix/cleanup[2651]: A71BF103C10: message-id=<20060908094627.A71BF103C10@debian.menegatti.eu> Sep 8 11:46:27 localhost postfix/qmgr[1611]: A71BF103C10: from=<root@menegatti.eu>, size=311, nrcpt=1 (queue active) Sep 8 11:46:27 localhost postfix/local[2653]: A71BF103C10: to=<simone@menegatti.eu>, relay=local, delay=0, status=sent (delivered to command: procmail -a "$EXTENSION" DEFAULT=$HOME/Maildir/ MAILDIR=$HOME/M aildir)
Sep  8 11:46:27 localhost postfix/qmgr[1611]: A71BF103C10: removed

In /home/simone/Maildir/new trovo la mail e riesco a leggerla con un Thunderbird avendo impostato l'account simone@menegatti.eu che punta al server interno 192.168.0.2
Quindi diciamo che l'invio di una mail locale funziona in quanto la ricevo.

Se pero cerco di inviare una mail da fuori a simone@menegatti.eu dopo un po mi ritorna indietro il seguente messaggio:

*********************
This is the Postfix program at host debian.menegatti.eu.
I'm sorry to have to inform you that your message could not be
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 Postfix program

<simone@localhost>: host mail.libero.it[193.70.192.50] said: 504
   <simone@localhost>: Recipient address rejected: need fully-qualified
   address (in reply to RCPT TO command)

Reporting-MTA: dns; debian.menegatti.eu
X-Postfix-Queue-ID: A312F103C0F
X-Postfix-Sender: rfc822; menegattisimone@libero.it
Arrival-Date: Fri,  8 Sep 2006 12:49:34 +0200 (CEST)
Content-Type: text/plain

Final-Recipient: rfc822; simone@localhost
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host mail.libero.it[193.70.192.50] said: 504
   <simone@localhost>: Recipient address rejected: need fully-qualified
   address (in reply to RCPT TO command)
*******************************

Ecco il mail.log di quando fetchmail se lo passa:

Sep  8 12:49:30 localhost fetchmail[1765]: awakened at Fri Sep  8
Sep  8 12:49:34 localhost fetchmail[1765]: 1 message for
simone@menegatti.eu at pop.menegatti.eu (1242 octets).
Sep  8 12:49:34 localhost fetchmail[1765]: reading message
simone@menegatti.eu@mail.register.it:1 of 1 (1242 octets)
Sep  8 12:49:34 localhost postfix/smtpd[2811]: connect from
localhost.localdomain[127.0.0.1]
Sep  8 12:49:34 localhost postfix/smtpd[2811]: A312F103C0F:
client=localhost.localdomain[127.0.0.1]
Sep  8 12:49:34 localhost postfix/cleanup[2814]: A312F103C0F:
message-id=<450148FC.8010404@libero.it>
Sep  8 12:49:34 localhost postfix/qmgr[1611]: A312F103C0F:
from=<menegattisimone@libero.it>, size=1586, nrcpt=1 (queue active)
Sep  8 12:49:34 localhost fetchmail[1765]:  flushed
Sep  8 12:49:35 localhost postfix/smtp[2815]: A312F103C0F:
to=<simone@localhost>, relay=mail.libero.it[193.70.192.50], delay=1,
status=bounced (host mail.libero.it[193.70.192.50] said: 504
<simone@localhost>: Recipient address rejected: need fully-qualified
address (in reply to RCPT TO command))
Sep  8 12:49:35 localhost postfix/cleanup[2814]: 48481103C10:
message-id=<20060908104935.48481103C10@debian.menegatti.eu>
Sep  8 12:49:35 localhost postfix/qmgr[1611]: 48481103C10: from=<>,
size=3606, nrcpt=1 (queue active)
Sep  8 12:49:35 localhost postfix/qmgr[1611]: A312F103C0F: removed
Sep  8 12:49:37 localhost postfix/smtp[2815]: 48481103C10:
to=<menegattisimone@libero.it>, relay=mail.libero.it[193.70.192.50],
delay=2, status=sent (250 Ok: queued as 6E0F0A8C9D)
Sep  8 12:49:37 localhost postfix/qmgr[1611]: 48481103C10: removed
Sep  8 12:49:38 localhost fetchmail[1765]: sleeping at Fri Sep  8
Sep  8 12:49:38 localhost postfix/smtpd[2811]: disconnect from
localhost.localdomain[127.0.0.1]
Sep  8 12:54:38 localhost fetchmail[1765]: awakened at Fri Sep  8
Sep  8 12:54:46 localhost fetchmail[1765]: sleeping at Fri Sep  8



xèèèèèè????????????


Accetto consigli su come risolvere il problema.
ciao
grazie



Reply to: