Ik zit met een (kleine) uitdaging...
Ik verstuur extern mail, dit gaat goed. Maar het probleem is het volgende;
Ik heb op mijn locale netwerk: inside.delphy.nl
Ik wil mijn mail versturen met *@delphy.nl
Dit doe ik om onderscheid te maken tussen het inet domain en locale domain...
Als ik nu mail verstuur, komt er @hostname.inside.delphy.nl achter het mailtje te staan.
Het domain delphy.nl is wel in mijn bezit.
Hieronder volgt mijn main.cf
#soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
#default_privs = nobody
#myhostname = host.domain.name
#myhostname = mail.inside.delphy.nl
#myhostname = virtual.domain.name
mydomain = delphy.nl
#myorigin = $myhostname
myorigin = $mydomain
#myorigin = delphy.nl
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#mydestination = $myhostname, localhost.$mydomain
mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, $mydomain,
#mail.$mydomain, www.$mydomain, ftp.$mydomain
# relayhost = $mydomain
relayhost = smtp.cistron.nl
#gateway.my.domain
# relayhost = uucphost
# relayhost = [an.ip.add.ress]
#local_recipient_maps = $alias_maps unix:passwd.byname
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases
alias_maps = hash:/etc/mail/aliases
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
alias_database = hash:/etc/mail/aliases
#home_mailbox = Mailbox
#home_mailbox = Maildir/
home_mailbox = .maildir/
# mail_spool_directory = /var/mail
# mail_spool_directory = /var/spool/mail
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =
# luser_relay = $user@other.host
# luser_relay = $local@other.host
# luser_relay = admin+$local
#header_checks = regexp:/etc/postfix/filename
#header_checks = pcre:/etc/postfix/filename
relay_domains = $mydestination
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#fast_flush_domains = $relay_domains
#fast_flush_domains =
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2
# debug_peer_list = 127.0.0.1
# debug_peer_list = some.domain
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
Helllluuupp#soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
#default_privs = nobody
#myhostname = host.domain.name
#myhostname = mail.inside.delphy.nl
#myhostname = virtual.domain.name
mydomain = delphy.nl
#myorigin = $myhostname
myorigin = $mydomain
#myorigin = delphy.nl
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#mydestination = $myhostname, localhost.$mydomain
mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, $mydomain,
#mail.$mydomain, www.$mydomain, ftp.$mydomain
# relayhost = $mydomain
relayhost = smtp.cistron.nl
#gateway.my.domain
# relayhost = uucphost
# relayhost = [an.ip.add.ress]
#local_recipient_maps = $alias_maps unix:passwd.byname
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases
alias_maps = hash:/etc/mail/aliases
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
alias_database = hash:/etc/mail/aliases
#home_mailbox = Mailbox
#home_mailbox = Maildir/
home_mailbox = .maildir/
# mail_spool_directory = /var/mail
# mail_spool_directory = /var/spool/mail
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =
# luser_relay = $user@other.host
# luser_relay = $local@other.host
# luser_relay = admin+$local
#header_checks = regexp:/etc/postfix/filename
#header_checks = pcre:/etc/postfix/filename
relay_domains = $mydestination
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#fast_flush_domains = $relay_domains
#fast_flush_domains =
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2
# debug_peer_list = 127.0.0.1
# debug_peer_list = some.domain
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
Heelllppp plz
Ik verstuur extern mail, dit gaat goed. Maar het probleem is het volgende;
Ik heb op mijn locale netwerk: inside.delphy.nl
Ik wil mijn mail versturen met *@delphy.nl
Dit doe ik om onderscheid te maken tussen het inet domain en locale domain...
Als ik nu mail verstuur, komt er @hostname.inside.delphy.nl achter het mailtje te staan.
Het domain delphy.nl is wel in mijn bezit.
Hieronder volgt mijn main.cf
#soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
#default_privs = nobody
#myhostname = host.domain.name
#myhostname = mail.inside.delphy.nl
#myhostname = virtual.domain.name
mydomain = delphy.nl
#myorigin = $myhostname
myorigin = $mydomain
#myorigin = delphy.nl
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#mydestination = $myhostname, localhost.$mydomain
mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, $mydomain,
#mail.$mydomain, www.$mydomain, ftp.$mydomain
# relayhost = $mydomain
relayhost = smtp.cistron.nl
#gateway.my.domain
# relayhost = uucphost
# relayhost = [an.ip.add.ress]
#local_recipient_maps = $alias_maps unix:passwd.byname
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases
alias_maps = hash:/etc/mail/aliases
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
alias_database = hash:/etc/mail/aliases
#home_mailbox = Mailbox
#home_mailbox = Maildir/
home_mailbox = .maildir/
# mail_spool_directory = /var/mail
# mail_spool_directory = /var/spool/mail
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =
# luser_relay = $user@other.host
# luser_relay = $local@other.host
# luser_relay = admin+$local
#header_checks = regexp:/etc/postfix/filename
#header_checks = pcre:/etc/postfix/filename
relay_domains = $mydestination
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#fast_flush_domains = $relay_domains
#fast_flush_domains =
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2
# debug_peer_list = 127.0.0.1
# debug_peer_list = some.domain
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
Helllluuupp#soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
#default_privs = nobody
#myhostname = host.domain.name
#myhostname = mail.inside.delphy.nl
#myhostname = virtual.domain.name
mydomain = delphy.nl
#myorigin = $myhostname
myorigin = $mydomain
#myorigin = delphy.nl
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#mydestination = $myhostname, localhost.$mydomain
mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, $mydomain,
#mail.$mydomain, www.$mydomain, ftp.$mydomain
# relayhost = $mydomain
relayhost = smtp.cistron.nl
#gateway.my.domain
# relayhost = uucphost
# relayhost = [an.ip.add.ress]
#local_recipient_maps = $alias_maps unix:passwd.byname
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases
alias_maps = hash:/etc/mail/aliases
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
alias_database = hash:/etc/mail/aliases
#home_mailbox = Mailbox
#home_mailbox = Maildir/
home_mailbox = .maildir/
# mail_spool_directory = /var/mail
# mail_spool_directory = /var/spool/mail
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =
# luser_relay = $user@other.host
# luser_relay = $local@other.host
# luser_relay = admin+$local
#header_checks = regexp:/etc/postfix/filename
#header_checks = pcre:/etc/postfix/filename
relay_domains = $mydestination
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#fast_flush_domains = $relay_domains
#fast_flush_domains =
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2
# debug_peer_list = 127.0.0.1
# debug_peer_list = some.domain
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
Heelllppp plz