Possible to Set Outgoing Domain In Postfix?

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

  1. alienbob

    alienbob New Member

    Hi,

    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:
    Code:
    un 13 12:18:15 gemma sendmail[16752]: k5DBIFvs016752: Authentication-Warning: gemma.alienrealms.net: apache set sender to james@localhost using -f
    Jun 13 12:18:15 gemma sendmail[16752]: k5DBIFvs016752: from=james@localhost, size=550, class=0, nrcpts=1, msgid=<2431.192.168.77.17.1150197495.squirrel@192.168.77.28>, relay=apache@localhost
    Jun 13 12:18:15 gemma postfix/smtpd[16753]: connect from gemma.alienrealms.net[127.0.0.1]
    This is my main.cf
    Code:
    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 = 168.100.189.0/28, 127.0.0.0/8
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    home_mailbox = Maildir/
    debug_peer_level = 2
    debugger_command =
             PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
             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 :)

    Cheers

    AB
     
  2. falko

    falko Super Moderator ISPConfig Developer

    I guess you hostname is localhost instead of alienrealms.net. You can check with
    Code:
    hostname
    and
    Code:
    hostname -f
    Please run
    Code:
    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