HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   not receiving mail (postfix) (http://www.howtoforge.com/forums/showthread.php?t=5197)

lathrodectus 27th June 2006 18:30

not receiving mail (postfix)
 
i can send mails. but cannot receive them



here is /var/log/mail


Jun 27 19:25:30 linux postfix/local[2661]: 00B054B4058: to=<admin@ariferdogan.com.tr>, relay=local, delay=1529, status=bounced (unknown user: "admin")
Jun 27 19:25:30 linux postfix/local[2666]: 6AD7E4B4059: to=<haluk@ariferdogan.com.tr>, relay=local, delay=1066, status=bounced (unknown user: "haluk")
Jun 27 19:25:30 linux postfix/cleanup[2673]: 0D5994B405E: message-id=<20060627162530.0D5994B405E@mail.ariferdogan.co m.tr.com>
Jun 27 19:25:30 linux postfix/cleanup[2671]: 0DF394B405F: message-id=<20060627162530.0DF394B405F@mail.ariferdogan.co m.tr.com>
Jun 27 19:25:30 linux postfix/qmgr[2659]: 0D5994B405E: from=<>, size=4169, nrcpt=1 (queue active)
Jun 27 19:25:30 linux postfix/qmgr[2659]: 0DF394B405F: from=<>, size=2219, nrcpt=1 (queue active)
Jun 27 19:25:30 linux postfix/qmgr[2659]: 6AD7E4B4059: removed
Jun 27 19:25:30 linux postfix/qmgr[2659]: 00B054B4058: removed
Jun 27 19:25:30 linux postfix/local[2666]: 0DF394B405F: to=<root@www.ariferdogan.com.tr>, relay=local, delay=0, status=sent (delivered to maildir)
Jun 27 19:25:30 linux postfix/qmgr[2659]: 0DF394B405F: removed
Jun 27 19:25:30 linux postfix/local[2661]: 0D5994B405E: to=<info@ariferdogan.com.tr>, relay=local, delay=0, status=bounced (unknown user: "info")
Jun 27 19:25:30 linux postfix/qmgr[2659]: 0D5994B405E: removed
Jun 27 19:25:30 linux postfix/qmgr[2659]: 01C514B4055: from=<>, size=4147, nrcpt=1 (queue active)
Jun 27 19:25:30 linux postfix/qmgr[2659]: F2D554B404C: from=<>, size=4135, nrcpt=1 (queue active)
Jun 27 19:25:30 linux postfix/local[2661]: F2D554B404C: to=<info@ariferdogan.com.tr>, relay=local, delay=2587, status=bounced (unknown user: "info")
Jun 27 19:25:30 linux postfix/local[2666]: 01C514B4055: to=<info@ariferdogan.com.tr>, relay=local, delay=2586, status=bounced (unknown user: "info")
Jun 27 19:25:30 linux postfix/qmgr[2659]: F2D554B404C: removed
Jun 27 19:25:30 linux postfix/qmgr[2659]: 01C514B4055: removed
Jun 27 19:26:56 linux postfix/smtpd[2704]: warning: cannot get certificate from file /etc/postfix/ssl/smtpd.crt
Jun 27 19:26:56 linux postfix/smtpd[2704]: warning: TLS library problem: 2704:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:642:Expecting: CERTIFICATE:
Jun 27 19:26:56 linux postfix/smtpd[2704]: warning: TLS library problem: 2704:error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib:ssl_rsa.c:767:
Jun 27 19:26:56 linux postfix/smtpd[2704]: cannot load RSA certificate and key data
Jun 27 19:27:10 linux postfix/smtpd[2704]: connect from unknown[192.168.2.2]
Jun 27 19:27:10 linux postfix/smtpd[2704]: NOQUEUE: reject: RCPT from unknown[192.168.2.2]: 550 <haluk@ariferdogan.com.tr>: Recipient address rejected: User unknown in local recipient table; from=<info@ariferdogan.com.tr> to=<haluk@ariferdogan.com.tr> proto=ESMTP helo=<office>
Jun 27 19:27:15 linux postfix/smtpd[2704]: disconnect from unknown[192.168.2.2]
Jun 27 19:28:09 linux postfix/smtpd[2704]: connect from unknown[192.168.2.2]
Jun 27 19:28:09 linux postfix/smtpd[2704]: NOQUEUE: reject: RCPT from unknown[192.168.2.2]: 550 <haluk@ariferdogan.com.tr>: Recipient address rejected: User unknown in local recipient table; from=<info@ariferdogan.com.tr> to=<haluk@ariferdogan.com.tr> proto=ESMTP helo=<office>


and postconf -n

alias_maps = hash:/etc/aliases
biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
disable_mime_output_conversion = no
home_mailbox = Maildir/
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = /etc/postfix/local-host-names
mydomain = ariferdogan.com.tr.com
myhostname = mail.$mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_ relay_domains
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_8bitmime = no
strict_rfc821_envelopes = no
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550

DerLobo 27th June 2006 18:37

Did you enabled Maildir Support in ISPConfig?
-> Administration ->Server

For me this was helpfull

lathrodectus 27th June 2006 18:52

no way.
falko please help meeee

fobicodam 27th June 2006 19:11

Your postfix configuration file is bad. Did you read your log file?

(unknown user: "info")
warning: cannot get certificate from file /etc/postfix/ssl/smtpd.crt

First: Almost sure, your config file is not pointing to the ispconfig aliases file
Second: Your certificate file is wrong or is not there.

Do the postfix configuration again form the setup step-by-step.

falko 28th June 2006 11:24

Code:

virtual_maps = hash:/etc/postfix/virtusertable
is missing in /etc/postfix/main.cf.

lathrodectus 28th June 2006 13:03

Code:

Jun 28 13:36:49 linux postfix/smtp[27478]: 520EC4B404F: to=<web2_haluk@mail.ariferdogan.com.tr>, orig_to=<haluk@ariferdogan.com.tr>,
relay=none, delay=52, status=deferred (Host or domain name not found.
Name service error for name=mail.ariferdogan.com.tr type=MX: Host not found, try again)

i made the perfect setup step by step again.
i think its DNS problem, right??
when i type :
Code:

dig @ns1.ariferdogan.com.tr any mail.ariferdogan.com.tr
dig: couldn't get address for 'ns1.ariferdogan.com.tr': failure

but
Code:

dig @ns1.nic.tr any ns1.ariferdogan.com.tr

; <<>> DiG 9.3.1 <<>> @ns1.nic.tr any ns1.ariferdogan.com.tr
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57675
;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;ns1.ariferdogan.com.tr.                IN      ANY

;; ANSWER SECTION:
ns1.ariferdogan.com.tr. 43200  IN      A      85.105.107.246

;; AUTHORITY SECTION:
ariferdogan.com.tr.    43200  IN      NS      ns1.ariferdogan.com.tr.
ariferdogan.com.tr.    43200  IN      NS      ns2.ariferdogan.com.tr.

;; ADDITIONAL SECTION:
ns1.ariferdogan.com.tr. 43200  IN      A      85.105.107.246
ns2.ariferdogan.com.tr. 43200  IN      A      85.105.107.246

;; Query time: 38 msec
;; SERVER: 144.122.95.51#53(144.122.95.51)
;; WHEN: Wed Jun 28 14:02:05 2006
;; MSG SIZE  rcvd: 120

i cant figure out the problem.
the box is under a aDSL router / NAT and ports 80,21,22,25,110 vs are routed to box (as virtual servers)

lathrodectus 28th June 2006 13:24

bounce back???
 
here is /var/log/mail
Code:

Jun 28 14:11:05 linux pop3d: Connection, ip=[::ffff:192.168.2.8]
Jun 28 14:11:05 linux pop3d: LOGIN, user=web2_haluk, ip=[::ffff:192.168.2.8]
Jun 28 14:11:05 linux pop3d: LOGOUT, user=web2_haluk, ip=[::ffff:192.168.2.8], top=0, retr=0, time=0
Jun 28 14:11:13 linux postfix/smtpd[28167]: connect from mail.ariferdogan.com.tr[85.105.107.246]
Jun 28 14:11:13 linux postfix/smtp[28176]: warning: host mail.ariferdogan.com.tr[85.105.107.246] greeted me with my own hostname mail.ariferdogan.com.tr
Jun 28 14:11:13 linux postfix/smtp[28176]: warning: host mail.ariferdogan.com.tr[85.105.107.246] replied to HELO/EHLO with my own hostname mail.ariferdogan.com.tr
Jun 28 14:11:13 linux postfix/smtp[28176]: 9413C4B4048: to=<web2_haluk@mail.ariferdogan.com.tr>, orig_to=<haluk@ariferdogan.com.tr>, relay=mail.ariferdogan.com.tr[85.105.107.246], delay=72, status=bounced (mail for mail.ariferdogan.com.tr loops back to myself)
Jun 28 14:11:13 linux postfix/smtpd[28167]: disconnect from mail.ariferdogan.com.tr[85.105.107.246]
Jun 28 14:11:18 linux postfix/smtp[28175]: 9413C4B4048: to=<lathrodectus@hotmail.com>, relay=mx1.hotmail.com[65.54.244.8], delay=77, status=sent (250  <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAg0FyE7Edx0Cur6iWvXQmu8KAAAAQAAAApt+t7n9ik0ik0vNefM+TWAEAAAAA@ariferdogan.com.tr> Queued mail for delivery)
Jun 28 14:11:18 linux postfix/cleanup[28157]: 2FE5B4B404F: message-id=<20060628111118.2FE5B4B404F@mail.ariferdogan.com.tr>
Jun 28 14:11:18 linux postfix/qmgr[27446]: 2FE5B4B404F: from=<>, size=4317, nrcpt=1 (queue active)
Jun 28 14:11:18 linux postfix/qmgr[27446]: 9413C4B4048: removed
Jun 28 14:12:54 linux pop3d: Connection, ip=[::ffff:192.168.2.2]
Jun 28 14:12:54 linux pop3d: LOGIN, user=web2_info, ip=[::ffff:192.168.2.2]
Jun 28 14:12:54 linux pop3d: LOGOUT, user=web2_info, ip=[::ffff:192.168.2.2], top=0, retr=0, time=0
Jun 28 14:13:11 linux postfix/smtpd[28161]: connect from mail.ariferdogan.com.tr[85.105.107.246]
Jun 28 14:13:11 linux postfix/smtp[28158]: warning: host mail.ariferdogan.com.tr[85.105.107.246] greeted me with my own hostname mail.ariferdogan.com.tr
Jun 28 14:13:11 linux postfix/smtp[28158]: warning: host mail.ariferdogan.com.tr[85.105.107.246] replied to HELO/EHLO with my own hostname mail.ariferdogan.com.tr
Jun 28 14:13:11 linux postfix/smtp[28158]: 2FE5B4B404F: to=<web2_info@mail.ariferdogan.com.tr>, orig_to=<info@ariferdogan.com.tr>, relay=mail.ariferdogan.com.tr[85.105.107.246], delay=113, status=bounced (mail for mail.ariferdogan.com.tr loops back to myself)
Jun 28 14:13:11 linux postfix/smtpd[28161]: disconnect from mail.ariferdogan.com.tr[85.105.107.246]
Jun 28 14:13:11 linux postfix/qmgr[27446]: 2FE5B4B404F: removed

and when i send a mail from hotmail i get this back :
Code:

This is the Postfix program at host mail.ariferdogan.com.tr.

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 Postfix program

<web2_info@mail.ariferdogan.com.tr> (expanded from <info@ariferdogan.com.tr>):
    mail for mail.ariferdogan.com.tr loops back to myself

whats the problem??
thanks 4 all the help

lathrodectus 28th June 2006 14:12

Solved
 
its because i have changed the hostname after the configuration.
i added the host names to /etc/postfix/local-host-names file and all is done
thanks for all the help to a newbie.


All times are GMT +2. The time now is 03:53.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.