can receive emails but can't send

Discussion in 'Installation/Configuration' started by terryoleary1981, Nov 5, 2008.

  1. terryoleary1981

    terryoleary1981 New Member

    Hi

    I've got an odd problem, I can receive emails without any problems but I'm not able to send emails to anyone from either outlook or via webmail. When I try to send an email I get the following error:

    SMTP Error: Recipient not accepted. Verify your relay rules

    I've looked through the forum and dug around my main.cfg but i cant see anything out of the ordinary. Below is my maillog... can anyone else suggest whats could be wrong? (i've replaced my domain name with mydomain in the example below)

    Code:
    Nov  5 11:22:52 mail postfix/smtpd[7979]: lost connection after RCPT from localhost.localdomain[::1]
    Nov  5 11:22:52 mail postfix/smtpd[7979]: disconnect from localhost.localdomain[::1]
    Nov  5 11:26:12 mail postfix/anvil[7982]: statistics: max connection rate 1/60s for (smtp:::1) at Nov  5 11
    :22:52
    Nov  5 11:26:12 mail postfix/anvil[7982]: statistics: max connection count 1 for (smtp:::1) at Nov  5 11:22
    :52
    Nov  5 11:26:12 mail postfix/anvil[7982]: statistics: max cache size 1 at Nov  5 11:22:52
    Nov  5 11:27:33 mail postfix/smtpd[8973]: connect from localhost.localdomain[::1]
    Nov  5 11:27:33 mail postfix/smtpd[8973]: NOQUEUE: reject: RCPT from localhost.localdomain[::1]: 554 5.7.1
    <terry.oleary@gmail.com>: Relay access denied; from=<web23_terry@mydomain.co.uk> to=<terry.oleary@gmail.com
    > proto=SMTP helo=<UebiMiau>
    Nov  5 11:27:33 mail postfix/smtpd[8973]: lost connection after RCPT from localhost.localdomain[::1]
    Nov  5 11:27:33 mail postfix/smtpd[8973]: disconnect from localhost.localdomain[::1]
    
    
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/postfix/main.cf?
     
  3. terryoleary1981

    terryoleary1981 New Member

    here it is with comments/commented out stuff omitted

    Code:
    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    data_directory = /var/lib/postfix
    mail_owner = postfix
    inet_interfaces = all
    mydestination = $myhostname, localhost.$mydomain, localhost
    unknown_local_recipient_reject_code = 550
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    debug_peer_level = 2
    debugger_command =
    	 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
    	 ddd $daemon_directory/$process_name $process_id & sleep 5
    setgid_group = postdrop
    html_directory = no
    manpage_directory = /usr/share/man
    sample_directory = /usr/share/doc/postfix-2.5.5/samples
    readme_directory = /usr/share/doc/postfix-2.5.5/README_FILES
    inet_protocols = all
    smtpd_sasl_local_domain = 
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    stmpd_sasl_authenticated_header = yes
    stmpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks,reject_unauth_destination
    mynetworks = 127.0.0.0/8, 192.168.1.77/8
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtpd_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_cert_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    myhostname = mail.spongecat.com
    home_mailbox = Maildir/
    mailbox_command = 
    
    virtual_maps = hash:/etc/postfix/virtusertable
    
    mydestination = /etc/postfix/local-host-names
    append_at_myorigin = yes
    append_dot_mydomain = yes
     
  4. terryoleary1981

    terryoleary1981 New Member

    i've solved the problem, copied the main.cfg from my old (working server) a mis-spelling on one line and a few additions, all working fine... now i need to get the ftp service up and running!
     

Share This Page