Postfix and Ms Exchange 2000 Server

Discussion in 'Installation/Configuration' started by Martin Tort, Jan 18, 2007.

  1. Martin Tort

    Martin Tort New Member

    I love ispconfig. I m a Pc Supporter, i use ispconfig in some of my client. now a need to config a Single site ispconfig with Fedora Core 6 and rellay al incoming mail to a internal Exchange server. I tray a lot of changes but nothing function well. Please I need help to do this... Thk.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you considered to set mailserver to external for all ISPConfig sites and then use postfix transports to forward incoming mails to the exchange server?
     
  3. Martin Tort

    Martin Tort New Member

    No, I try to do this. I need to change the default setting of ISP Site - Options to Eternal Mail Server and then config the Transport option in the postfix main.cf file...
     
  4. Martin Tort

    Martin Tort New Member

    Till:
    I have just done that you have suggested me and no function.

    i send a copy of a mailog file

    an 19 14:20:22 localhost dovecot: IMAP(m_alvarez): Disconnected: Logged out
    Jan 19 14:20:22 localhost dovecot: imap-login: Login: user=<m_alvarez>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
    Jan 19 14:20:48 localhost postfix/qmgr[5861]: warning: connect to transport smpt: No such file or directory
    Jan 19 14:21:22 localhost dovecot: imap-login: Login: user=<m_alvarez>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
    Jan 19 14:21:22 localhost dovecot: IMAP(m_alvarez): Disconnected: Logged out
    Jan 19 14:21:45 localhost postfix/anvil[6087]: statistics: max connection rat

    my postmap -n

    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    broken_sasl_auth_clients = yes
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/libexec/postfix
    debug_peer_level = 2
    delay_warning_time = 2
    home_mailbox = Maildir/
    html_directory = no
    mailbox_command =
    mailq_path = /usr/bin/mailq.postfix
    manpage_directory = /usr/share/man
    mydestination = /etc/postfix/local-host-names
    mynetworks = 127.0.0.0/8, 10.0.0.0/24
    newaliases_path = /usr/bin/newaliases.postfix
    readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    sample_directory = /usr/share/doc/postfix-2.3.3/samples
    sendmail_path = /usr/sbin/sendmail.postfix
    setgid_group = postdrop
    smtp_tls_note_starttls_offer = yes
    smtp_use_tls = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_local_domain =
    smtpd_sasl_security_options = noanonymous
    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
    tls_random_source = dev:/dev/urandom
    transport_maps = hash:/etc/postfix/transport
    unknown_local_recipient_reject_code = 550

    my transport files

    # TRANSPORT(5) TRANSPORT(5)
    #
    # NAME
    # transport - Postfix transport table format
    #
    # SYNOPSIS
    # postmap /etc/postfix/transport
    #
    # postmap -q "string" /etc/postfix/transport
    #
    #
    # The interpretation of the nexthop field is transport
    # dependent. In the case of SMTP, specify a service on a
    # non-default port as host:service, and disable MX (mail
    # exchanger) DNS lookups with [host] or [host]:port. The []
    # form is required when you specify an IP address instead of
    # a hostname.
    #
    #
    # LICENSE
    # The Secure Mailer license must be distributed with this
    # software.
    #
    # AUTHOR(S)
    # Wietse Venema
    # IBM T.J. Watson Research
    # P.O. Box 704
    # Yorktown Heights, NY 10598, USA
    #
    #
    * smpt:[10.10.1.1:25]
     
  5. falko

    falko Super Moderator Howtoforge Staff

    Please run
    Code:
    postmap /etc/postfix/transport
    /etc/init.d/postfix restart
     
  6. Martin Tort

    Martin Tort New Member

    Falko:

    Still not funtion:

    i copy a part of of my mailog


    Jan 22 15:45:34 localhost postfix/smtp[17026]: 5C917BF48D: to=<[email protected]>, orig_to=<[email protected]>, relay=10.10.1.1[10.10.1.1]:25, delay=69, delays=0.74/0.02/68/0.07, dsn=5.7.1, status=bounced (host 10.10.1.1[10.10.1.1] said: 550 5.7.1 Unable to relay for [email protected]itux (in reply to RCPT TO command))
    Jan 22 15:45:34 localhost postfix/cleanup[17022]: DBE1ABF485: message-id=<[email protected]>
    Jan 22 15:45:34 localhost postfix/qmgr[15642]: DBE1ABF485: from=<>, size=9385, nrcpt=1 (queue active)
    Jan 22 15:45:34 localhost postfix/bounce[17050]: 5C917BF48D: sender non-delivery notification: DBE1ABF485
    Jan 22 15:45:34 localhost postfix/qmgr[15642]: 5C917BF48D: removed
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Please add localhost.traditux to /etc/postfix/local-host-names (at the bottom of the file) and also to /etc/hosts. Then restart Postfix.
     
  8. Martin Tort

    Martin Tort New Member

    Falko

    Now work all rigth. The problem was in the address in the destination domain. I m upgrade this an all work fine.

    I have one more question

    The clamav and the spamassasing is still working. Me be as not.
     
  9. falko

    falko Super Moderator Howtoforge Staff

    What's the question?
     
  10. Martin Tort

    Martin Tort New Member

    Falko:

    After do all of the steeps, the postfix foward all mail to the exchange server, but not detect any spam o virus in the new mails. I want to know if the mail is still cheked with the spammassasin or is forward direct to the exchange server. I need the spamm checking.
     
  11. martinfst

    martinfst Member Moderator

    The forward is executed before the Spam/Av checking. I see no other solution as to tweak your procmailrc, but don't tell me I have not warned you. This procmailrc is used by ISPC, so it may well be overwritten anytime.
     
  12. falko

    falko Super Moderator Howtoforge Staff

    SpamAssassin and ClamAV are called by procmail recipes. If you have Postfix forward all mails to your Exchange server, procmail isn't called anymore.
     
  13. Martin Tort

    Martin Tort New Member

    Falko:

    Can i call procmail before foward the mails.
     
  14. martinfst

    martinfst Member Moderator

    Not that I know. The .forward is read by Postfix. And AFAIK, in procmail is processed after Postfix finishes. You only have the postfix "reject_" options to filter initial junk.
     

Share This Page