View Single Post
  #5  
Old 31st August 2010, 16:28
Marr Marr is offline
Junior Member
 
Join Date: Aug 2010
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default

okay, i managed to get amavis working by typing

/etc/init.d/amavis restart

is that correct?

also, i changed hostname to server.marr.net.pl in /etc/hostname and /etc/postfix/main.cf and added 127.0.0.1 server.marr.net.pl in /etc/hosts. Now situation is similar - i cant send or receivie any mails. When i try to send one from gmail for example i get something like this:

Code:
                  The mail system

<marek@marr.net.pl>: unknown user: "marek"
Reporting-MTA: dns; server.marr.net.pl
X-Postfix-Queue-ID: 783AA81091
X-Postfix-Sender: rfc822; marekoleksiak@gmail.com
Arrival-Date: Tue, 31 Aug 2010 15:18:03 +0200 (CEST)

Final-Recipient: rfc822; marek@marr.net.pl
Original-Recipient: rfc822;marek@marr.net.pl
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "marek"

Od: Marek Oleksiak <marekoleksiak@gmail.com>
Data: 31 sierpnia 2010 15:17:54 GMT+02:00
Do: marek@marr.net.pl
Temat: dsadas


dsaddsdasdadad
of course i've added correct line in my local machine /etc/hosts to point server.marr.net.pl to my server ip..

heres my logs:

Code:
Aug 31 15:16:56 server amavis[23474]: No decoder for .lha
Aug 31 15:16:56 server amavis[23474]: No decoder for .doc tried: ripole
Aug 31 15:16:56 server amavis[23474]: Found decoder for .cab at /usr/bin/cabextract
Aug 31 15:16:56 server amavis[23474]: No decoder for .tnef
Aug 31 15:16:56 server amavis[23474]: Internal decoder for .tnef
Aug 31 15:16:56 server amavis[23474]: Found decoder for .exe at /usr/bin/arj
Aug 31 15:16:56 server amavis[23474]: Using primary internal av scanner code for ClamAV-clamd
Aug 31 15:16:56 server amavis[23474]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Aug 31 15:16:56 server amavis[23474]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.39, libdb 4.8
Aug 31 15:17:28 server imapd: Connection, ip=[::1]
Aug 31 15:17:28 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[59806], protocol=IMAP
Aug 31 15:17:28 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=82, sent=600, time=0
Aug 31 15:17:29 server imapd: Connection, ip=[::1]
Aug 31 15:17:29 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[59807], protocol=IMAP
Aug 31 15:17:29 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=286, sent=1702, time=0
Aug 31 15:17:31 server imapd: Connection, ip=[::1]
Aug 31 15:17:31 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[59808], protocol=IMAP
Aug 31 15:17:31 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=63, sent=368, time=0
Aug 31 15:17:32 server imapd: Connection, ip=[::1]
Aug 31 15:17:32 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[59809], protocol=IMAP
Aug 31 15:17:32 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=56, sent=368, time=0
Aug 31 15:18:01 server postfix/smtpd[23501]: connect from mail-bw0-f53.google.com[209.85.214.53]
Aug 31 15:18:01 server postfix/trivial-rewrite[23415]: warning: do not list domain marr.net.pl in BOTH mydestination and virtual_mailbox_domains
Aug 31 15:18:01 server postfix/smtpd[23501]: AAA0981089: client=mail-bw0-f53.google.com[209.85.214.53]
Aug 31 15:18:01 server postfix/cleanup[23505]: AAA0981089: message-id=
Aug 31 15:18:01 server postfix/qmgr[23186]: AAA0981089: from=, size=1990, nrcpt=1 (queue active)
Aug 31 15:18:03 server postfix/smtpd[23413]: connect from localhost[127.0.0.1]
Aug 31 15:18:03 server postfix/smtpd[23413]: 783AA81091: client=localhost[127.0.0.1]
Aug 31 15:18:03 server postfix/cleanup[23505]: 783AA81091: message-id=
Aug 31 15:18:03 server postfix/qmgr[23186]: 783AA81091: from=, size=2623, nrcpt=1 (queue active)
Aug 31 15:18:03 server postfix/trivial-rewrite[23415]: warning: do not list domain marr.net.pl in BOTH mydestination and virtual_mailbox_domains
Aug 31 15:18:03 server amavis[23483]: (23483-01) Passed CLEAN, [209.85.214.53] [95.51.16.58] -> , Message-ID: , mail_id: miG2x2wWhC3W, Hits: -0.099, size: 1990, queued_as: 783AA81091, dkim_id=@gmail.com,marekoleksiak@gmail.com, 1700 ms
Aug 31 15:18:03 server postfix/smtp[23506]: AAA0981089: to=, relay=127.0.0.1[127.0.0.1]:10024, delay=1.9, delays=0.19/0.01/0.01/1.7, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=23483-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 783AA81091)
Aug 31 15:18:03 server postfix/qmgr[23186]: AAA0981089: removed
Aug 31 15:18:03 server postfix/local[23511]: 783AA81091: to=, relay=local, delay=0.11, delays=0.04/0.02/0/0.04, dsn=5.1.1, status=bounced (unknown user: "marek")
Aug 31 15:18:03 server postfix/cleanup[23505]: 924BD81092: message-id=<20100831131803.924BD81092@server.marr.net.pl>
Aug 31 15:18:03 server postfix/bounce[23512]: 783AA81091: sender non-delivery notification: 924BD81092
Aug 31 15:18:03 server postfix/qmgr[23186]: 924BD81092: from=<>, size=4488, nrcpt=1 (queue active)
Aug 31 15:18:03 server postfix/qmgr[23186]: 783AA81091: removed
Aug 31 15:18:14 server imapd: Connection, ip=[::1]
Aug 31 15:18:14 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[51685], protocol=IMAP
Aug 31 15:18:14 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=63, sent=368, time=0
Aug 31 15:18:15 server postfix/smtp[23513]: 924BD81092: to=, relay=gmail-smtp-in.l.google.com[74.125.39.27]:25, delay=12, delays=0.04/0.01/4/7.5, dsn=2.0.0, status=sent (250 2.0.0 OK 1283260695 r6si7886736faq.15)
Aug 31 15:18:15 server postfix/qmgr[23186]: 924BD81092: removed
Aug 31 15:18:16 server imapd: Connection, ip=[::1]
Aug 31 15:18:16 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[51686], protocol=IMAP
Aug 31 15:18:16 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=56, sent=368, time=0
Aug 31 15:18:17 server imapd: Connection, ip=[::1]
Aug 31 15:18:17 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[51687], protocol=IMAP
Aug 31 15:18:17 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=79, sent=562, time=0
Aug 31 15:18:24 server imapd: Connection, ip=[::1]
Aug 31 15:18:24 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[51688], protocol=IMAP
Aug 31 15:18:24 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=82, sent=600, time=0
Aug 31 15:18:26 server imapd: Connection, ip=[::1]
Aug 31 15:18:26 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[51689], protocol=IMAP
Aug 31 15:18:26 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=286, sent=1702, time=0
Aug 31 15:18:29 server imapd: Connection, ip=[::1]
Aug 31 15:18:29 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[51690], protocol=IMAP
Aug 31 15:18:29 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=79, sent=562, time=0
Aug 31 15:18:31 server postfix/smtpd[23501]: disconnect from mail-bw0-f53.google.com[209.85.214.53]
Aug 31 15:18:47 server imapd: Connection, ip=[::1]
Aug 31 15:18:47 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[51691], protocol=IMAP
Aug 31 15:18:47 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=63, sent=368, time=0
Aug 31 15:18:48 server imapd: Connection, ip=[::1]
Aug 31 15:18:48 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[51692], protocol=IMAP
Aug 31 15:18:48 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=56, sent=368, time=0
Aug 31 15:19:29 server imapd: Connection, ip=[::1]
Aug 31 15:19:29 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[51696], protocol=IMAP
Aug 31 15:19:29 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=79, sent=562, time=0
Aug 31 15:20:02 server postfix/smtpd[23501]: connect from localhost[127.0.0.1]
Aug 31 15:20:02 server postfix/smtpd[23501]: lost connection after CONNECT from localhost[127.0.0.1]
Aug 31 15:20:02 server postfix/smtpd[23501]: disconnect from localhost[127.0.0.1]
Aug 31 15:20:02 server pop3d: Connection, ip=[::1]
Aug 31 15:20:02 server pop3d: Disconnected, ip=[::1]
Aug 31 15:20:02 server imapd: Connection, ip=[::1]
Aug 31 15:20:02 server imapd: Disconnected, ip=[::1], time=0
Aug 31 15:20:29 server imapd: Connection, ip=[::1]
Aug 31 15:20:29 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[51708], protocol=IMAP
Aug 31 15:20:29 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=79, sent=562, time=0
Aug 31 15:21:29 server imapd: Connection, ip=[::1]
Aug 31 15:21:29 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[51709], protocol=IMAP
Aug 31 15:21:29 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=79, sent=562, time=0
Aug 31 15:22:29 server imapd: Connection, ip=[::1]
Aug 31 15:22:29 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[51710], protocol=IMAP
Aug 31 15:22:29 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=79, sent=562, time=0
Aug 31 15:23:03 server postfix/smtpd[23413]: timeout after END-OF-MESSAGE from localhost[127.0.0.1]
Aug 31 15:23:03 server postfix/smtpd[23413]: disconnect from localhost[127.0.0.1]
Aug 31 15:23:22 server postfix/anvil[23502]: statistics: max connection rate 1/60s for (smtp:209.85.214.53) at Aug 31 15:18:01
Aug 31 15:23:22 server postfix/anvil[23502]: statistics: max connection count 1 for (smtp:209.85.214.53) at Aug 31 15:18:01
Aug 31 15:23:22 server postfix/anvil[23502]: statistics: max cache size 1 at Aug 31 15:18:01
Aug 31 15:23:29 server imapd: Connection, ip=[::1]
Aug 31 15:23:29 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[43900], protocol=IMAP
Aug 31 15:23:29 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=79, sent=562, time=0
Aug 31 15:24:29 server imapd: Connection, ip=[::1]
Aug 31 15:24:29 server imapd: LOGIN, user=marek@marr.net.pl, ip=[::1], port=[43901], protocol=IMAP
Aug 31 15:24:29 server imapd: LOGOUT, user=marek@marr.net.pl, ip=[::1], headers=0, body=0, rcvd=79, sent=562, time=0
Aug 31 15:25:01 server pop3d: Connection, ip=[::1]
Aug 31 15:25:01 server pop3d: Disconnected, ip=[::1]
Aug 31 15:25:01 server imapd: Connection, ip=[::1]
Aug 31 15:25:01 server imapd: Disconnected, ip=[::1], time=0

Code:
Aug 31 09:51:26 server postfix/trivial-rewrite[18162]: warning: do not list domain marr.net.pl in BOTH mydestination and virtual_mailbox_domains
Aug 31 09:55:17 server postfix/trivial-rewrite[18379]: warning: do not list domain marr.net.pl in BOTH mydestination and virtual_mailbox_domains
Aug 31 12:41:58 server postfix/trivial-rewrite[20975]: warning: do not list domain marr.net.pl in BOTH mydestination and virtual_mailbox_domains
Aug 31 14:34:21 server postfix[22619]: warning: valid_hostname: numeric hostname: 217.153.56.126
Aug 31 14:34:21 server postfix[22619]: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: 217.153.56.126
Aug 31 14:35:01 server postfix/smtpd[22643]: warning: valid_hostname: numeric hostname: 217.153.56.126
Aug 31 14:35:01 server postfix/smtpd[22643]: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: 217.153.56.126
Aug 31 14:35:01 server postfix/sendmail[22654]: warning: valid_hostname: numeric hostname: 217.153.56.126
Aug 31 14:35:01 server postfix/sendmail[22654]: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: 217.153.56.126
Aug 31 14:35:02 server postfix/master[12634]: warning: process /usr/lib/postfix/smtpd pid 22643 exit status 1
Aug 31 14:35:02 server postfix/master[12634]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Aug 31 15:08:45 server postfix/trivial-rewrite[23319]: warning: do not list domain marr.net.pl in BOTH mydestination and virtual_mailbox_domains
Aug 31 15:14:53 server postfix/trivial-rewrite[23415]: warning: do not list domain marr.net.pl in BOTH mydestination and virtual_mailbox_domains
Aug 31 15:18:01 server postfix/trivial-rewrite[23415]: warning: do not list domain marr.net.pl in BOTH mydestination and virtual_mailbox_domains
Aug 31 15:18:03 server postfix/trivial-rewrite[23415]: warning: do not list domain marr.net.pl in BOTH mydestination and virtual_mailbox_domains

the mail queue and error mail log hasn't changed at all... i think im in dead spot...


EDIT: oh wait, i don't really know why, but outgoing emails started to work... now only problem is with receiving them..

EDIT: any further ideas? i have no one.

Last edited by Marr; 31st August 2010 at 18:48.
Reply With Quote