Possible to Set Outgoing Domain In Postfix?

Discussion in 'Server Operation' started by alienbob, Jun 13, 2006.

  1. alienbob

    alienbob New Member


    I have been using Postfix and Squirrel mail quite happily for a while but have a question. In SQmail and in Thunderbird I can set the outgoing mail from: and reply to: address's and the mail will send OK but if I remove this in SQmail it will fail with:
    un 13 12:18:15 gemma sendmail[16752]: k5DBIFvs016752: Authentication-Warning: gemma.alienrealms.net: apache set sender to [email protected] using -f
    Jun 13 12:18:15 gemma sendmail[16752]: k5DBIFvs016752: [email protected], size=550, class=0, nrcpts=1, msgid=<[email protected]>, [email protected]
    Jun 13 12:18:15 gemma postfix/smtpd[16753]: connect from gemma.alienrealms.net[]
    This is my main.cf
    ommand_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    myorigin = alienrealms.net
    mydestination = $myhostname, localhost.$mydomain, localhost, alienrealms.net
    unknown_local_recipient_reject_code = 550
    #mynetworks =,
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    home_mailbox = Maildir/
    debug_peer_level = 2
    debugger_command =
             xxgdb $daemon_directory/$process_name $process_id & sleep 5
    sendmail_path = /usr/sbin/sendmail.postfix
    newaliases_path = /usr/bin/newaliases.postfix
    mailq_path = /usr/bin/mailq.postfix
    setgid_group = postdrop
    html_directory = no
    manpage_directory = /usr/share/man
    sample_directory = /usr/share/doc/postfix-2.2.2/samples
    readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
    Which I am sure is all hunky dorey :) Where is Apache getting the @localhost from and is it possible to stop it from writing this and get it to use the "my origin" domain?

    Its no big deal, it would be nice to know tho :)


  2. falko

    falko Super Moderator ISPConfig Developer

    I guess you hostname is localhost instead of alienrealms.net. You can check with
    hostname -f
    Please run
    postconf -e 'myhostname = $myorigin'
    and restart Postfix.
  3. alienbob

    alienbob New Member

    thanks for the reply, my hostname is gemma.alienrealms.net and unfortunatly the solution didn't resolve it :( As I said no biggy, thanks for your time once again :)

Share This Page