LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Debian - mailman - postfix with virtual aliases and domains (https://www.linuxquestions.org/questions/linux-server-73/debian-mailman-postfix-with-virtual-aliases-and-domains-4175462312/)

G00fy 05-17-2013 02:42 AM

Debian - mailman - postfix with virtual aliases and domains
 
Hi all,

I have set up a postfix with virtual aliases and domains, which works fine.
But right now I wanted to add a mailinglist to one of the domains.

Like: mylist@example.com.

Mind you, I still do have user1@example.com, user2... etc...

I followed this guide, but I always do get "unknown user as a bounced email" in the mail.log.


The following is a detailed log of what happens when I add the "-v" switch to smtpd in master.cf:
Code:

May 16 23:06:05 others1 postfix/smtpd[11220]: < mail-ee0-f46.google.com[74.125.83.46]: RCPT TO:<mylist@example.com>
May 16 23:06:05 others1 postfix/smtpd[11220]: extract_addr: input: <mylist@example.com>
May 16 23:06:05 others1 postfix/smtpd[11220]: smtpd_check_addr: addr=mylist@example.com
May 16 23:06:05 others1 postfix/smtpd[11220]: send attr request = rewrite
May 16 23:06:05 others1 postfix/smtpd[11220]: send attr rule = local
May 16 23:06:05 others1 postfix/smtpd[11220]: send attr address = mylist@example.com
May 16 23:06:05 others1 postfix/smtpd[11220]: private/rewrite socket: wanted attribute: flags
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: flags
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute value: 0
May 16 23:06:05 others1 postfix/smtpd[11220]: private/rewrite socket: wanted attribute: address
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: address
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute value: mylist@example.com
May 16 23:06:05 others1 postfix/smtpd[11220]: private/rewrite socket: wanted attribute: (list terminator)
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: (end)
May 16 23:06:05 others1 postfix/smtpd[11220]: rewrite_clnt: local: mylist@example.com -> mylist@example.com
May 16 23:06:05 others1 postfix/smtpd[11220]: send attr request = resolve
May 16 23:06:05 others1 postfix/smtpd[11220]: send attr sender =
May 16 23:06:05 others1 postfix/smtpd[11220]: send attr address = mylist@example.com
May 16 23:06:05 others1 postfix/smtpd[11220]: private/rewrite socket: wanted attribute: flags
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: flags
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute value: 0
May 16 23:06:05 others1 postfix/smtpd[11220]: private/rewrite socket: wanted attribute: transport
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: transport
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute value: virtual
May 16 23:06:05 others1 postfix/smtpd[11220]: private/rewrite socket: wanted attribute: nexthop
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: nexthop
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute value: example.com
May 16 23:06:05 others1 postfix/smtpd[11220]: private/rewrite socket: wanted attribute: recipient
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: recipient
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute value: mylist@example.com
May 16 23:06:05 others1 postfix/smtpd[11220]: private/rewrite socket: wanted attribute: flags
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: flags
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute value: 1024
May 16 23:06:05 others1 postfix/smtpd[11220]: private/rewrite socket: wanted attribute: (list terminator)
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: (end)
May 16 23:06:05 others1 postfix/smtpd[11220]: resolve_clnt: `' -> `mylist@example.com' -> transp=`virtual' host=`example.com' rcpt=`mylist@example.com' flags= class=virtual
May 16 23:06:05 others1 postfix/smtpd[11220]: ctable_locate: install entry key mylist@example.com
May 16 23:06:05 others1 postfix/smtpd[11220]: extract_addr: in: <mylist@example.com>, result: mylist@example.com
May 16 23:06:05 others1 postfix/smtpd[11220]: send attr request = rewrite
May 16 23:06:05 others1 postfix/smtpd[11220]: send attr rule = local
May 16 23:06:05 others1 postfix/smtpd[11220]: send attr address = double-bounce
May 16 23:06:05 others1 postfix/smtpd[11220]: private/rewrite socket: wanted attribute: flags
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: flags
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute value: 0
May 16 23:06:05 others1 postfix/smtpd[11220]: private/rewrite socket: wanted attribute: address
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: address
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute value: double-bounce@mystmp_domain.be
May 16 23:06:05 others1 postfix/smtpd[11220]: private/rewrite socket: wanted attribute: (list terminator)
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: (end)
May 16 23:06:05 others1 postfix/smtpd[11220]: rewrite_clnt: local: double-bounce -> double-bounce@mystmp_domain.be
May 16 23:06:05 others1 postfix/smtpd[11220]: >>> START Recipient address RESTRICTIONS <<<
May 16 23:06:05 others1 postfix/smtpd[11220]: generic_checks: name=permit_mynetworks
May 16 23:06:05 others1 postfix/smtpd[11220]: permit_mynetworks: mail-ee0-f46.google.com 74.125.83.46
May 16 23:06:05 others1 postfix/smtpd[11220]: match_hostname: mail-ee0-f46.google.com ~? 127.0.0.0/8
May 16 23:06:05 others1 postfix/smtpd[11220]: match_hostaddr: 74.125.83.46 ~? 127.0.0.0/8
May 16 23:06:05 others1 postfix/smtpd[11220]: match_hostname: mail-ee0-f46.google.com ~? [::ffff:127.0.0.0]/104
May 16 23:06:05 others1 postfix/smtpd[11220]: match_hostaddr: 74.125.83.46 ~? [::ffff:127.0.0.0]/104
May 16 23:06:05 others1 postfix/smtpd[11220]: match_hostname: mail-ee0-f46.google.com ~? [::1]/128
May 16 23:06:05 others1 postfix/smtpd[11220]: match_hostaddr: 74.125.83.46 ~? [::1]/128
May 16 23:06:05 others1 postfix/smtpd[11220]: match_list_match: mail-ee0-f46.google.com: no match
May 16 23:06:05 others1 postfix/smtpd[11220]: match_list_match: 74.125.83.46: no match
May 16 23:06:05 others1 postfix/smtpd[11220]: generic_checks: name=permit_mynetworks status=0
May 16 23:06:05 others1 postfix/smtpd[11220]: generic_checks: name=reject_unauth_destination
May 16 23:06:05 others1 postfix/smtpd[11220]: reject_unauth_destination: mylist@example.com
May 16 23:06:05 others1 postfix/smtpd[11220]: permit_auth_destination: mylist@example.com
May 16 23:06:05 others1 postfix/smtpd[11220]: ctable_locate: leave existing entry key mylist@example.com
May 16 23:06:05 others1 postfix/smtpd[11220]: generic_checks: name=reject_unauth_destination status=0
May 16 23:06:05 others1 postfix/smtpd[11220]: >>> END Recipient address RESTRICTIONS <<<
May 16 23:06:05 others1 postfix/smtpd[11220]: >>> CHECKING RECIPIENT MAPS <<<
May 16 23:06:05 others1 postfix/smtpd[11220]: ctable_locate: leave existing entry key mylist@example.com
May 16 23:06:05 others1 postfix/smtpd[11220]: maps_find: recipient_canonical_maps: mylist@example.com: not found
May 16 23:06:05 others1 postfix/smtpd[11220]: match_string: example.com ~? Debian-60-squeeze-64-minimal
May 16 23:06:05 others1 postfix/smtpd[11220]: match_string: example.com ~? localhost.localdomain
May 16 23:06:05 others1 postfix/smtpd[11220]: match_string: example.com ~? localhost
May 16 23:06:05 others1 postfix/smtpd[11220]: match_list_match: example.com: no match
May 16 23:06:05 others1 postfix/smtpd[11220]: maps_find: recipient_canonical_maps: @example.com: not found
May 16 23:06:05 others1 postfix/smtpd[11220]: mail_addr_find: mylist@example.com -> (not found)
May 16 23:06:05 others1 postfix/smtpd[11220]: maps_find: canonical_maps: mylist@example.com: not found
May 16 23:06:05 others1 postfix/smtpd[11220]: match_string: example.com ~? Debian-60-squeeze-64-minimal
May 16 23:06:05 others1 postfix/smtpd[11220]: match_string: example.com ~? localhost.localdomain
May 16 23:06:05 others1 postfix/smtpd[11220]: match_string: example.com ~? localhost
May 16 23:06:05 others1 postfix/smtpd[11220]: match_list_match: example.com: no match
May 16 23:06:05 others1 postfix/smtpd[11220]: maps_find: canonical_maps: @example.com: not found
May 16 23:06:05 others1 postfix/smtpd[11220]: mail_addr_find: mylist@example.com -> (not found)
May 16 23:06:05 others1 postfix/smtpd[11220]: maps_find: virtual_alias_maps: hash:/var/lib/mailman/data/virtual-mailman(0,lock|fold_fix): mylist@example.com = mylist
May 16 23:06:05 others1 postfix/smtpd[11220]: mail_addr_find: mylist@example.com -> mylist
May 16 23:06:05 others1 postfix/smtpd[11220]: smtpd_check_rewrite: trying: permit_inet_interfaces
May 16 23:06:05 others1 postfix/smtpd[11220]: permit_inet_interfaces: mail-ee0-f46.google.com 74.125.83.46
May 16 23:06:05 others1 postfix/smtpd[11220]: before input_transp_cleanup: cleanup flags = enable_header_body_filter enable_automatic_bcc enable_address_mapping enable_milters
May 16 23:06:05 others1 postfix/smtpd[11220]: after input_transp_cleanup: cleanup flags = enable_header_body_filter enable_automatic_bcc enable_address_mapping
May 16 23:06:05 others1 postfix/smtpd[11220]: connect to subsystem public/cleanup
May 16 23:06:05 others1 postfix/smtpd[11220]: public/cleanup socket: wanted attribute: queue_id
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: queue_id
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute value: 368B721E70BE
May 16 23:06:05 others1 postfix/smtpd[11220]: public/cleanup socket: wanted attribute: (list terminator)
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: (end)
May 16 23:06:05 others1 postfix/smtpd[11220]: send attr flags = 178
May 16 23:06:05 others1 postfix/smtpd[11220]: 368B721E70BE: client=mail-ee0-f46.google.com[74.125.83.46]
May 16 23:06:05 others1 postfix/smtpd[11220]: > mail-ee0-f46.google.com[74.125.83.46]: 250 2.1.5 Ok
May 16 23:06:05 others1 postfix/smtpd[11220]: < mail-ee0-f46.google.com[74.125.83.46]: DATA
May 16 23:06:05 others1 postfix/smtpd[11220]: > mail-ee0-f46.google.com[74.125.83.46]: 354 End data with <CR><LF>.<CR><LF>
May 16 23:06:05 others1 postfix/smtpd[11220]: public/cleanup socket: wanted attribute: status
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: status
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute value: 0
May 16 23:06:05 others1 postfix/smtpd[11220]: public/cleanup socket: wanted attribute: reason
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: reason
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute value: (end)
May 16 23:06:05 others1 postfix/smtpd[11220]: public/cleanup socket: wanted attribute: (list terminator)
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: (end)
May 16 23:06:05 others1 postfix/smtpd[11220]: > mail-ee0-f46.google.com[74.125.83.46]: 250 2.0.0 Ok: queued as 368B721E70BE
May 16 23:06:05 others1 postfix/smtpd[11220]: < mail-ee0-f46.google.com[74.125.83.46]: QUIT
May 16 23:06:05 others1 postfix/smtpd[11220]: > mail-ee0-f46.google.com[74.125.83.46]: 221 2.0.0 Bye
May 16 23:06:05 others1 postfix/smtpd[11220]: match_hostname: mail-ee0-f46.google.com ~? 127.0.0.0/8
May 16 23:06:05 others1 postfix/smtpd[11220]: match_hostaddr: 74.125.83.46 ~? 127.0.0.0/8
May 16 23:06:05 others1 postfix/smtpd[11220]: match_hostname: mail-ee0-f46.google.com ~? [::ffff:127.0.0.0]/104
May 16 23:06:05 others1 postfix/smtpd[11220]: match_hostaddr: 74.125.83.46 ~? [::ffff:127.0.0.0]/104
May 16 23:06:05 others1 postfix/smtpd[11220]: match_hostname: mail-ee0-f46.google.com ~? [::1]/128
May 16 23:06:05 others1 postfix/smtpd[11220]: match_hostaddr: 74.125.83.46 ~? [::1]/128
May 16 23:06:05 others1 postfix/smtpd[11220]: match_list_match: mail-ee0-f46.google.com: no match
May 16 23:06:05 others1 postfix/smtpd[11220]: match_list_match: 74.125.83.46: no match
May 16 23:06:05 others1 postfix/smtpd[11220]: send attr request = disconnect
May 16 23:06:05 others1 postfix/smtpd[11220]: send attr ident = smtp:74.125.83.46
May 16 23:06:05 others1 postfix/smtpd[11220]: private/anvil: wanted attribute: status
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: status
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute value: 0
May 16 23:06:05 others1 postfix/smtpd[11220]: private/anvil: wanted attribute: (list terminator)
May 16 23:06:05 others1 postfix/smtpd[11220]: input attribute name: (end)
May 16 23:06:05 others1 postfix/smtpd[11220]: disconnect from mail-ee0-f46.google.com[74.125.83.46]
May 16 23:06:05 others1 postfix/smtpd[11220]: master_notify: status 1
May 16 23:06:05 others1 postfix/smtpd[11220]: connection closed

As you can see the mylist@example.com is found in '/var/lib/mailman/data/virtual-mailman' and translated into mylist.

But then mylist is considered to be a local delivery (I guess), and is not put through the pipe:
2318521E204E: to=<mylist@otherdomain.com>, orig_to=<mylist@example.com>, relay=virtual, delay=0.19, delays=0.14/0/0/0.04, dsn=5.1.1, status=bounced (unknown user: "mylist@otherdomain.com")

Code:

/var/lib/mailman/data/virtual-mailman:
mylist@example.com              mylist

/var/lib/mailman/data/aliases:
mylist:            "|/var/lib/mailman/mail/mailman post mylist"

Is there an easy way for me to fix this here?


Thanks!


All times are GMT -5. The time now is 10:07 PM.