Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: postfix problem

  1. #1

    Default postfix problem

    Hi to all,
    I'm having problem with postfix.
    I can recieve emails but I can't send. I'm getting an error
    Your message did not reach some or all of the intended recipients.

    Subject: sdfsdf
    Sent: 4/19/2012 4:16 PM

    The following recipient(s) cannot be reached:

    'info@mydomain.lt' on 4/19/2012 4:16 PM
    554 5.7.1 <info@mydomain.lt>: Relay access denied


    But I can send email to info@mydomain.lt from info@mydomain.lt but i'm dont getting it..

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: postfix problem

    On 2012-04-19 15:26, melkij22 wrote:
    >
    > Hi to all,
    > I'm having problem with postfix.
    > I can recieve emails but I can't send. I'm getting an error
    > Your message did not reach some or all of the intended recipients.
    >
    > Subject: sdfsdf
    > Sent: 4/19/2012 4:16 PM
    >
    > The following recipient(s) cannot be reached:
    >
    > 'info@mydomain.lt' on 4/19/2012 4:16 PM
    > 554 5.7.1 <info@mydomain.lt>: Relay access denied


    What I wonder is why you are surprised that it does not work. You can not
    send from/to invented domains, because mydomain.lt does not exist in internet.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  3. #3

    Default Re: postfix problem

    Hi robin,
    I just changed to mydomain.lt for security purpose, my domain is another

  4. #4

    Default Re: postfix problem

    melkij22 wrote:
    > Hi robin,
    > I just changed to mydomain.lt for security purpose, my domain is
    > another


    What the 'relay access denied' error message tells you is that your
    domain isn't authorized to connect to that SMTP server. You have to have
    permission from your ISP to send from a particular domain, you can't
    just choose anything you want. The precaution is designed to stop
    spammers exploiting the SMTP server.

  5. #5

    Default Re: postfix problem

    where should I do that? in postfix/main.cf file? I have added domain name there and IP adress

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: postfix problem

    On 2012-04-19 16:26, melkij22 wrote:
    >
    > Hi robin,
    > I just changed to mydomain.lt for security purpose, my domain is
    > another


    Then please say so, because what domains you use in reporting a postfix
    problem is crucial.

    Ok, look for entries in the mail log around the time when you post. Put
    them here, in *code* *tags*, and say clearly which domains you faked for
    posting here. I prefer seeing "faked.domain.co" or equivalent.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  7. #7
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,382
    Blog Entries
    2

    Default Re: postfix problem

    If I understand the original post, there is no problem relaying through postfix running on the local machine. The problem is relaying through the next SMTP server. Troubleshooting should start with how that next SMTP server's security settings are configured. Until you have that everything else is not useful.

    IMO,
    TS

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: postfix problem

    On 2012-04-19 20:06, tsu2 wrote:
    >
    > If I understand the original post, there is no problem relaying through
    > postfix running on the local machine. The problem is relaying through
    > the next SMTP server. Troubleshooting should start with how that next
    > SMTP server's security settings are configured. Until you have that
    > everything else is not useful.


    That would be shown in the log. I prefer looking at the mail log instead of
    guessing - and having faked domain names and not knowing it doesn't help.

    There could be many different reasons for denying the relay. I want to know
    what is in the from address, in the to, who is the relay, and who is the
    server. I want to know the domains used for all those four parts, I want to
    know if they are real, solvable domains, or invented domains; and if the
    names are faked for the purpose of this post I want to know that as well.

    And I do not want to give a speech on what errors can there be based on
    each of those four, blind.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  9. #9

    Default Re: postfix problem

    here is logs :
    Code:
    May 20 09:39:00 pionerplyus amavis[5116]: (05116-01) (!)connect to /var/run/clamav/clamd failed, attempt #1: Can't connect to UNIX socket /var/run/clamav/clamd: No such file or directory
    May 20 09:39:00 pionerplyus amavis[5116]: (05116-01) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd (All attempts (1) failed connecting to /var/run/clamav/clamd) at (eval 113) line 603.\n
    May 20 09:39:00 pionerplyus amavis[5116]: (05116-01) (!)WARN: all primary virus scanners failed, considering backups
    May 20 09:39:16 pionerplyus postfix/trivial-rewrite[16235]: warning: do not list domain elektroshop.lt in BOTH mydestination and virtual_mailbox_domains
    May 20 09:39:16 pionerplyus postfix/trivial-rewrite[16235]: warning: do not list domain elektroshop.lt in BOTH mydestination and virtual_mailbox_domains
    Code:
    May 20 09:38:39 pionerplyus dovecot: auth-worker: mysql(localhost): Connected to database dbispconfig
    May 20 09:38:39 pionerplyus dovecot: pop3-login: Login: user=, method=PLAIN, rip=78.60.81.202, lip=192.168.1.90, mpid=16223
    May 20 09:38:40 pionerplyus dovecot: pop3(info@elektroshop.lt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
    May 20 09:38:44 pionerplyus clamd[4340]: SelfCheck: Database status OK.
    May 20 09:38:52 pionerplyus postfix/smtpd[16231]: connect from unknown[92.61.36.66]
    May 20 09:38:52 pionerplyus postfix/trivial-rewrite[16235]: warning: do not list domain elektroshop.lt in BOTH mydestination and virtual_mailbox_domains
    May 20 09:38:52 pionerplyus postfix/smtpd[16231]: C5BE5C0A45: client=unknown[92.61.36.66]
    May 20 09:38:52 pionerplyus postfix/cleanup[16247]: C5BE5C0A45: message-id=<012b01cd1ec0$4b747590$e25d60b0$@lt>
    May 20 09:38:52 pionerplyus postfix/qmgr[4307]: C5BE5C0A45: from=, size=2996, nrcpt=1 (queue active)
    May 20 09:38:52 pionerplyus postfix/smtpd[16231]: disconnect from unknown[92.61.36.66]
    May 20 09:38:52 pionerplyus amavis[5116]: (05116-01) ESMTP::10024 /var/spool/amavis/tmp/amavis-20120520T093852-05116-ppdB3X0a: -> SIZE=2996 Received: from elektroshop.lt ([127.0.0.1]) by localhost (linux-jfp8.site [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for ; Sun, 20 May 2012 09:38:52 +0300 (EEST)
    May 20 09:38:52 pionerplyus amavis[5116]: (05116-01) Checking: 98MjlSY6b-3v [92.61.36.66] ->
    May 20 09:38:52 pionerplyus amavis[5116]: (05116-01) Open relay? Nonlocal recips but not originating: info@elektroshop.lt
    May 20 09:38:53 pionerplyus amavis[5116]: (05116-01) p003 1 Content-Type: multipart/alternative
    May 20 09:38:53 pionerplyus amavis[5116]: (05116-01) p001 1/1 Content-Type: text/plain, size: 8 B, name:
    May 20 09:38:53 pionerplyus amavis[5116]: (05116-01) p002 1/2 Content-Type: text/html, size: 1549 B, name:
    May 20 09:38:55 pionerplyus dovecot: pop3-login: Login: user=, method=PLAIN, rip=78.60.81.202, lip=192.168.1.90, mpid=16253
    May 20 09:38:55 pionerplyus dovecot: pop3(info@elektroshop.lt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
    May 20 09:39:00 pionerplyus amavis[5116]: (05116-01) (!)connect to /var/run/clamav/clamd failed, attempt #1: Can't connect to UNIX socket /var/run/clamav/clamd: No such file or directory
    May 20 09:39:00 pionerplyus amavis[5116]: (05116-01) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd (All attempts (1) failed connecting to /var/run/clamav/clamd) at (eval 113) line 603.\n
    May 20 09:39:00 pionerplyus amavis[5116]: (05116-01) (!)WARN: all primary virus scanners failed, considering backups
    May 20 09:39:16 pionerplyus postfix/smtpd[16302]: connect from unknown[127.0.0.1]
    May 20 09:39:16 pionerplyus postfix/trivial-rewrite[16235]: warning: do not list domain elektroshop.lt in BOTH mydestination and virtual_mailbox_domains
    May 20 09:39:16 pionerplyus postfix/smtpd[16302]: 766AFC0A46: client=unknown[127.0.0.1]
    May 20 09:39:16 pionerplyus postfix/cleanup[16247]: 766AFC0A46: message-id=<012b01cd1ec0$4b747590$e25d60b0$@lt>
    May 20 09:39:16 pionerplyus postfix/qmgr[4307]: 766AFC0A46: from=, size=3417, nrcpt=1 (queue active)
    May 20 09:39:16 pionerplyus amavis[5116]: (05116-01) FWD from -> ,BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 766AFC0A46
    May 20 09:39:16 pionerplyus postfix/trivial-rewrite[16235]: warning: do not list domain elektroshop.lt in BOTH mydestination and virtual_mailbox_domains
    May 20 09:39:16 pionerplyus amavis[5116]: (05116-01) Passed CLEAN {RelayedOpenRelay}, [92.61.36.66]:58067 [78.60.81.202] -> , Queue-ID: C5BE5C0A45, Message-ID: <012b01cd1ec0$4b747590$e25d60b0$@lt>, mail_id: 98MjlSY6b-3v, Hits: 1.277, size: 2997, queued_as: 766AFC0A46, 23706 ms
    May 20 09:39:16 pionerplyus amavis[5116]: (05116-01) TIMING-SA total 14099 ms - parse: 1.58 (0.0%), extract_message_metadata: 9020 (64.0%), poll_dns_idle: 9011 (63.9%), get_uri_detail_list: 0.18 (0.0%), tests_pri_-1000: 3 (0.0%), tests_pri_-950: 1.02 (0.0%), tests_pri_-900: 1.06 (0.0%), tests_pri_-400: 0.96 (0.0%), tests_pri_0: 5057 (35.9%), check_spf: 0.32 (0.0%), check_razor2: 5021 (35.6%), check_pyzor: 0.19 (0.0%), tests_pri_500: 3 (0.0%), get_report: 0.81 (0.0%)
    May 20 09:39:16 pionerplyus postfix/smtp[16248]: C5BE5C0A45: to=, relay=127.0.0.1[127.0.0.1]:10024, delay=24, delays=0.14/0.01/0.01/24, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 766AFC0A46)
    May 20 09:39:16 pionerplyus postfix/qmgr[4307]: C5BE5C0A45: removed
    May 20 09:39:16 pionerplyus amavis[5116]: (05116-01) size: 2997, TIMING [total 23712 ms] - sql-prepare: 3 (0%)0, SMTP greeting: 2 (0%)0, SMTP EHLO: 2 (0%)0, SMTP pre-MAIL: 2 (0%)0, mkdir tempdir: 1 (0%)0, create email.txt: 0 (0%)0, sql-connect: 10 (0%)0, lookup_sql: 1 (0%)0, SMTP pre-DATA-flush: 2 (0%)0, SMTP DATA: 25 (0%)0, check_init: 1 (0%)0, digest_hdr: 1 (0%)0, digest_body: 1 (0%)0, mkdir parts: 3 (0%)0, mime_decode: 10 (0%)0, get-file-type2: 13 (0%)0, decompose_part: 1 (0%)0, decompose_part: 1 (0%)0, parts_decode: 0 (0%)0, check_header: 1 (0%)0, AV-scan-1: 7007 (30%)30, AV-scan-2: 2323 (10%)40, spam-wb-list: 2 (0%)40, SA parse: 5 (0%)40, SA check: 14091 (59%)99, decide_mail_destiny: 10 (0%)99, notif-quar: 1 (0%)99, fwd-connect: 18 (0%)99, fwd-mail-pip: 4 (0%)99, fwd-rcpt-pip: 0 (0%)99, fwd-data-chkpnt: 0 (0%)99, write-header: 1 (0%)99, fwd-data-contents: 0 (0%)99, fwd-end-chkpnt: 147 (1%)100, prepare-dsn: 1 (0%)100, main_log_entry: 18 (0%)100, update_snmp: 2 (0%)100, SMTP pre-response: 0 (0%)100, S...
    May 20 09:39:16 pionerplyus amavis[5116]: (05116-01) ...MTP response: 1 (0%)100, unlink-2-files: 0 (0%)100, rundown: 0 (0%)100
    May 20 09:39:16 pionerplyus amavis[5116]: (05116-01) extra modules loaded: unicore/lib/Nt/De.pl, unicore/lib/Perl/SpacePer.pl
    May 20 09:39:16 pionerplyus postfix/local[16305]: 766AFC0A46: to=, relay=local, delay=0.22, delays=0.15/0.01/0/0.06, dsn=5.1.1, status=bounced (unknown user: "info")
    May 20 09:39:16 pionerplyus postfix/cleanup[16247]: ABB06C0A45: message-id=<20120520063916.ABB06C0A45@elektroshop.lt>
    May 20 09:39:16 pionerplyus postfix/bounce[16307]: 766AFC0A46: sender non-delivery notification: ABB06C0A45
    May 20 09:39:16 pionerplyus postfix/qmgr[4307]: ABB06C0A45: from=<>, size=5240, nrcpt=1 (queue active)
    May 20 09:39:16 pionerplyus postfix/qmgr[4307]: 766AFC0A46: removed
    May 20 09:39:26 pionerplyus postfix/smtp[16308]: ABB06C0A45: to=, relay=none, delay=10, delays=0.04/0.01/10/0, dsn=5.4.4, status=bounced (unable to look up host maileris.lt: Name or service not known)
    May 20 09:39:26 pionerplyus postfix/qmgr[4307]: ABB06C0A45: removed
    May 20 09:40:02 pionerplyus postfix/smtpd[16231]: connect from localhost[::1]
    May 20 09:40:02 pionerplyus postfix/smtpd[16231]: lost connection after CONNECT from localhost[::1]
    May 20 09:40:02 pionerplyus postfix/smtpd[16231]: disconnect from localhost[::1]
    May 20 09:40:02 pionerplyus dovecot: pop3-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    May 20 09:40:02 pionerplyus dovecot: imap-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured
    May 20 09:41:39 pionerplyus dovecot: pop3-login: Login: user=, method=PLAIN, rip=78.60.81.202, lip=192.168.1.90, mpid=16500
    May 20 09:41:39 pionerplyus dovecot: pop3(info@elektroshop.lt): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
    May 20 09:43:22 pionerplyus postfix/anvil[16234]: statistics: max connection rate 1/60s for (smtp:92.61.36.66) at May 20 09:38:52
    May 20 09:43:22 pionerplyus postfix/anvil[16234]: statistics: max connection count 1 for (smtp:92.61.36.66) at May 20 09:38:52
    May 20 09:43:22 pionerplyus postfix/anvil[16234]: statistics: max cache size 1 at May 20 09:38:52
    May 20 06:44:16 pionerplyus postfix/smtpd[16302]: timeout after END-OF-MESSAGE from unknown[127.0.0.1]
    May 20 06:44:16 pionerplyus postfix/smtpd[16302]: disconnect from unknown[127.0.0.1]

  10. #10

    Default Re: postfix problem

    From having a quick look, raised the question, how many domains do you have?, just the one?, it seems to me that you have a domain domain.name that you also have added to the virtual domains, so postfix gets confused.

    You have domain.name in the resource (for example a MySQL database) referenced in the virtual_mailbox_domains directive in /etc/postfix/main.cf AND in the mydestination line (also in /etc/postfix/main.cf)! This doesn't work. You can list domain.name either in virtual_mailbox_domains or in mydestination, but not in both.

    Please correct this and restart Postfix:


    /etc/init.d/postfix restart

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •