Results 1 to 2 of 2

Thread: Relay to other smtp server

  1. #1

    Default Relay to other smtp server

    Mkay - so my vps is setup for 'xxx.org'.
    I want to route all smtp from 'xxx.org' to smtp 'vmx.xxx.net'.

    I'm running postfix with the following main.cf:
    Code:
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no
    append_dot_mydomain = no
    readme_directory = no
    myhostname = xxx.org
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination =
    relayhost = vmx.xxx.net
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    Now, my php script is sending an email to blah@xxx.org:
    Code:
    postfix/pickup[6695]: 0A3F11C2B8: uid=33 from=<www-data>
    postfix/cleanup[6703]: 0A3F11C2B8: message-id=<20090709045521.0A3F11C2B8@xxx.org>
    postfix/qmgr[6694]: 0A3F11C2B8: from=<www-data@xxx.org>, size=477, nrcpt=1 (queue active)
    postfix/smtp[6705]: 0A3F11C2B8: to=<blah@xxx.org>, relay=vmx.xxx.net[66.xxx.xxx.1
    9]:25], delay=4.8, delays=0.15/0.01/0.62/4, dsn=2.0.0, status=sent (250 OK)
    postfix/qmgr[6694]: 0A3F11C2B8: removed

    This makes it look like it's being delivered ok... but it isn't, any ideas?
    Last edited by thinice; 07-09-2009 at 05:04 AM.

  2. #2
    Join Date
    Jun 2008
    Posts
    232

    Default

    Quote Originally Posted by thinice View Post
    This makes it look like it's being delivered ok... but it isn't, any ideas?
    Looks like it is delivered to vmx.xxx.net successfully (status=sent (250 OK)), but you'll have to look in the mail logs on vmx.xxx.net to see what the mailsystem there does with it after receiving it. e.g. forwards it to another system, direct delivery to mailbox (which could forward to another mailbox) and so on.

    check /etc/aliases on vmx.xxx.net for local mail aliases that may be in effect.

Bookmarks

Posting Permissions

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