OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: canonical user

From: anwara (anwarasantori.austasia.biz)
Date: Fri Dec 29 2006 - 03:22:23 CST


Dear Magnus
thanks for fast reply....

Magnus Bäck wrote:
> On Friday, December 29, 2006 at 06:58 CET,
> anwara <anwarasantori.austasia.biz> wrote:
>
>
>
> The meaning of "canonical domain" and "canonical user" is unclear.
>
>
virtual domain: lampung.santori.austasia.biz
canonical domain: santori.austasia.biz

#ee /etc/postfix/sender_canonical
lampung.santori.austasia.biz santori.austasia.biz

#ee /etc/postfix/recipient_canonical
adminsantori.austasia.biz adminlampung.santori.austasia.biz
anwarasantori.austasia.biz anwaralampung.santori.austasia.biz

> If fetchmail is sending messages to the wrong user, you probably need to
> adjust the "is xxx here" part of your fetchmail configuration to specify
> a fully-qualified address. Or, adjust the myorigin parameter in Postfix
> to another domain. myorigin is the domain that is used to qualify
> unqualified addresses.
>
> Without logs and configuration this is as specific as I can get.
>
fetchmail always sending to anwaralampung.santori.austasia.biz instead
of anwarasantori.austasia.biz
this will be a problem if I "reply all" the messages, than it will cc
myself on anwaralampung.santori.austasia.biz

#tail -f /home/virtual/fetchlog
fetchmail: POP3< +OK Microsoft Exchange POP3 server version 5.5.2658.25
ready
fetchmail: POP3> USER anwara
fetchmail: POP3< +OK
fetchmail: POP3> PASS *
fetchmail: POP3< +OK User successfully logged on
fetchmail: POP3> STAT
fetchmail: POP3< +OK 4 6014
fetchmail: 4 messages for anwara at 10.80.1.5 (6014 octets).
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 1356
fetchmail: POP3> RETR 1
fetchmail: POP3< +OK
fetchmail: reading message anwara10.80.1.5:1 of 4 (1356 octets)
fetchmail: SMTP< 220 lampung.santori.austasia.biz ESMTP Postfix
fetchmail: SMTP> EHLO mailgate.austasia.biz
fetchmail: SMTP< 250-lampung.santori.austasia.biz
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-SIZE 1073741824
fetchmail: SMTP< 250-VRFY
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-ENHANCEDSTATUSCODES
fetchmail: SMTP< 250-8BITMIME
fetchmail: SMTP< 250 DSN
fetchmail: SMTP> MAIL FROM:<owner-postfix-userspostfix.org> BODY=7BIT
SIZE=1356
fetchmail: SMTP< 250 2.1.0 Ok
fetchmail: SMTP> RCPT TO:<anwarasantori.austasia.biz>
fetchmail: SMTP< 250 2.1.5 Ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF>
.fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 Ok: queued as 1BFD728445
fetchmail: flushed

#ee /home/virtual/fethmailrc
set postmaster "adminsantori.austasia.biz"
set no bouncemail
set no spambounce
defaults
        protocol pop3
        smtphost localhost
        smtpaddress santori.austasia.biz
set logfile /home/virtual/fetchlog

poll 10.80.1.5
        timeout 60
        user "anwarasantori.austasia.biz" with pass "empty" to
anwarasantori.austasia.biz here fetchall #keep
        user "testsantori.austasia.biz" with pass "test" to
testsantori.austasia.biz fetchall

#postconf -n
command_directory = /usr/local/sbin
config_directory = /etc/postfix
daemon_directory = /usr/local/libexec/postfix
debug_peer_level = 2
html_directory = /usr/local/share/doc/postfix/html
inet_interfaces = all
mail_owner = _postfix
mail_spool_directory = /var/mail
mailq_path = /usr/local/sbin/mailq
manpage_directory = /usr/local/man
message_size_limit = 1073741824
mydestination = localhost.$mydomain, localhost
mydomain = santori.austasia.biz
myhostname = lampung.santori.austasia.biz
mynetworks = 127.0.0.0/8, 10.38.0.0/16
myorigin = $mydomain
newaliases_path = /usr/local/sbin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix/readme
recipient_canonical_maps = hash:/etc/postfix/recipient_canonical
relay_domains = $mydestination
relayhost = 10.80.1.5
sample_directory = /etc/postfix
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/local/sbin/sendmail
setgid_group = _postdrop
smtpd_banner = $myhostname ESMTP $mail_name
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:2000
virtual_mailbox_base = /home/virtual
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 2073741824
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 2000
virtual_uid_maps = static:2000