OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Jeff Jacobson (jpjacobsonearthlink.net)
Date: Fri May 10 2002 - 12:58:23 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    I fixed it. Had to do a sender_canonical rewrite on the gateway mailserver.

    Thanks.

    -----Original Message-----
    From: owner-postfix-userspostfix.org
    [mailto:owner-postfix-userspostfix.org]On Behalf Of Jeff Jacobson
    Sent: Friday, May 10, 2002 8:57 AM
    To: Postfix Users
    Subject: $myorigin not working

    Hi,

    I've looked through the archives and read the FAQs, and experimented,
    looking for an and haven't found one yet. My apologies if there is one out
    there and I just haven't found it.

    I have a gateway-mailserver (Solaris 2.5.1 Sparc) running Postfix
    (v19991231) just fine. Everything works great!

    > postconf -n
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    debug_peer_level = 2
    default_destination_concurrency_limit = 10
    disable_dns_lookups = yes
    local_destination_concurrency_limit = 2
    mail_owner = postfix
    mydestination = $myhostname, $myhostname.$mydomain, localhost.$mydomain,
    $mydomain
    mydomain = co.sprintbbd.net
    myhostname = a_valid_hostname
    mynetworks = 192.168.2.0/8
    myorigin = $myhostname.$mydomain
    queue_directory = /var/spool/postfix

    I have also have a Sun workstation (Solaris 8 Sparc) running Postfix
    (v1.1.7), using the gateway machine as a relay:

    > postconf -n
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/libexec/postfix
    debug_peer_level = 2
    disable_dns_lookups = yes
    mail_owner = postfix
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/local/man
    mydestination = $myhostname, localhost.$mydomain, $myhostname.$mydomain
    mydomain = bwp.com
    myhostname = ultra
    myorigin = some_valid_host.co.sprintbbd.net
    newaliases_path = /usr/bin/newaliases
    queue_directory = /var/spool/postfix
    readme_directory = /etc/postfix
    # below is the gateway machine
    relayhost = 192.168.2.2
    sample_directory = /etc/postfix
    sendmail_path = /usr/lib/sendmail
    setgid_group = postdrop

    Everything works GREAT sending mail from the workstation, out through the
    relay / gateway mail server, and I have an alias on the mailserver which
    allows it to accept mail and relay it back to the workstation (as long as
    the email address is specified correctly when sending mail from the outside
    to the mailserver). But mail that originates from the workstation does not
    get the correct "$myorigin", and so the return address is wrong. i.e.

    mail from the workstation has a return address of:

            jpjwork_station.co.sprintbbd.net

    When is should have a return adress of:

            jpjvalid_hostname.co.sprintbbd.net (which is the gateway machine).

    I'm sure there must me a simple answer. My main.cf files (minus comment
    lines) follow:

    =========== main.cf from the gateway / mailserver =================
    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    mail_owner = postfix
    myhostname = valid_hostname
    myorigin = $myhostname.$mydomain
    mydomain = co.sprintbbd.net
    mydestination = $myhostname, $myhostname.$mydomain, localhost.$mydomain,
    $mydomain
    mynetworks = 192.168.2.0/8
    local_destination_concurrency_limit = 2
    default_destination_concurrency_limit = 10
    debug_peer_level = 2
    debugger_command =
             PATH=/usr/bin:/usr/X11R6/bin
             xxgdb $daemon_directory/$process_name $process_id & sleep 5
    disable_dns_lookups = yes

    ============ main.cf from the workstation ============================
    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    mail_owner = postfix
    debug_peer_level = 2
    debugger_command =
             PATH=/usr/bin:/usr/X11R6/bin
             xxgdb $daemon_directory/$process_name $process_id & sleep 5
    sendmail_path = /usr/lib/sendmail
    newaliases_path = /usr/bin/newaliases
    mailq_path = /usr/bin/mailq
    setgid_group = postdrop
    manpage_directory = /usr/local/man
    sample_directory = /etc/postfix
    readme_directory = /etc/postfix
    disable_dns_lookups = yes
    relayhost = 192.168.2.2
    myhostname = ultra
    mydomain = bwp.com
    # myorigin is postfix gateway machine
    myorigin = valid_hostname.co.sprintbbd.net
    mydestination = $myhostname, localhost.$mydomain, $myhostname.$mydomain

    Any help would be greatly appreciated.

    Thanks,
    Jeff

    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users
    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users