Toon posts:

Postfix: Versturen van mail

Pagina: 1
Acties:

Verwijderd

Topicstarter
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

Verwijderd

Topicstarter
Kliein foutje |:(

Had twee keer het probleem gepost...

  • Mior
  • Registratie: Maart 2000
  • Laatst online: 00:58
Gebruik het edit knopje dan, lekker duidelijk zo.

Over je probleem, probeer eens de myhostname parameter op te geven, dus zo:
code:
1
2
3
myhostname = inside.delphy.nl
mydomain = delphy.nl
myorigin = $mydomain

Waarbij inside de hostname van je server is.

Vergeet daarna niet postfix de herstarten (postfix reload).

Verwijderd

Topicstarter
Op zaterdag 06 juli 2002 13:32 schreef Phantom het volgende:
Gebruik het edit knopje dan, lekker duidelijk zo.
Heb ik toch gedaan...... :P


Over je probleem, probeer eens de myhostname parameter op te geven, dus zo:
code:
1
2
3
myhostname = inside.delphy.nl
mydomain = delphy.nl
myorigin = $mydomain

Waarbij inside de hostname van je server is.

Vergeet daarna niet postfix de herstarten (postfix reload).
Ik zal het iets duidelijker zeggen..
Lokaal domain is dus inside.delphy.nl

Dus server is gentoo.inside.delphy.nl

En ik wilo gebruiken met mailen van het inet domain naam delphy.nl

Verwijderd

Topicstarter
Over je probleem, probeer eens de myhostname parameter op te geven, dus zo:
code:
1
2
3
myhostname = inside.delphy.nl
mydomain = delphy.nl
myorigin = $mydomain

Waarbij inside de hostname van je server is.

Vergeet daarna niet postfix de herstarten (postfix reload).
[/quote]

Heb ik geprobeerd, maar het zelfde resultaat .......

:-(

Verwijderd

Topicstarter
Even een kleine update van 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 = gentoo.inside.delphy.nl
#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]
#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

Verwijderd

Topicstarter
Helemaal niemand ??':'(

Verwijderd

Topicstarter
Als ik de hostname van de machine verander, dan kan ik wel "bepalen" wat achter het @ komt te staan.

Maar dit staat tot in tegenstelling wat er in het config. bestand staat van postfix ...

Weird :?

  • arikkert
  • Registratie: Juli 2002
  • Laatst online: 05-07 11:57
het from adres moet je toch niet laten zetten door je MTA (bijv postfix) maar door je MUA (bijv pine, outlook).
of stuur je mail via crontab op hostname.inside.delphy.nl
ofzo ?
Op zaterdag 06 juli 2002 13:24 schreef Markie het volgende:
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.

Verwijderd

Topicstarter
Op zondag 07 juli 2002 12:04 schreef arikkert het volgende:
het from adres moet je toch niet laten zetten door je MTA (bijv postfix) maar door je MUA (bijv pine, outlook).
of stuur je mail via crontab op hostname.inside.delphy.nl
ofzo ?
[..]
Hoe kan ik het controleren dat het via de crontab gaat ??
Pagina: 1