Hello,
Just an update on this issue:
1. MAIN.CF:
2. transport_maps = hash:/etc/postfix/transport
3. virtual_alias_maps = proxy:mysql:/etc/postfix/
mysql-virtual_forwardings.cf, mysql:/etc/postfix/
mysql-virtual_email2email.cf
4. virtual_mailbox_domains = proxy:mysql:/etc/postfix/
mysql-virtual_domains.cf
5. virtual_mailbox_maps = proxy:mysql:/etc/postfix/
mysql-virtual_mailboxes.cf
6. virtual_mailbox_base = /emails/vmail
7. virtual_uid_maps = static:150
8. virtual_gid_maps = static:8
9. local_recipient_maps = proxy:unix:passwd.byname $alias_maps
$transport_maps
10. recipient_delimiter = -
11. # Use Dovecot to authenticate.
12. smtpd_sasl_type = dovecot
13. # Referring to /var/spool/postfix/private/auth
14. smtpd_sasl_path = private/auth
15. smtpd_sasl_auth_enable = yes
16. broken_sasl_auth_clients = yes
17. smtpd_sasl_security_options = noanonymous
18. smtpd_sasl_local_domain =
19. smtpd_sasl_authenticated_header = yes
20. proxy_read_maps = $local_recipient_maps $mydestination
$virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps
$virtual_mailbox_domains $relay_recipient_maps $relay_domains $ca$
21. virtual_transport = dovecot
22. dovecot_destination_recipient_limit = 1
23.
24. MASTER.CF:
25. #
==========================================================================
26. smtp inet n - - - - smtpd
27. -o content_filter=lmtp:127.0.0.1:11124
28.
29. 127.0.0.1:10024 inet n - n - - smtpd
30. -o content_filter=
31. -o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
32. -o smtpd_helo_restrictions=
33. -o smtpd_client_restrictions=
34. -o smtpd_sender_restrictions=
35. -o smtpd_recipient_restrictions=permit_mynetworks,reject
36. -o mynetworks=127.0.0.0/8
37. -o smtpd_authorized_xforward_hosts=127.0.0.0/8
38.
39. dspam-retrain unix - n n - 10 pipe
40. flags=Ru user=dspam argv=/etc/dspam/dspam-retrain $nexthop $sender
$recipient
41.
42.
43. TRANSPORT FILE:
44. cat /etc/postfix/transport
45. s...@domain.org dspam-retrain:spam
46. h...@domain.org dspam-retrain:innocent
47.
48. ERROR LOGS:
49. Jun 6 11:25:50 ubuntu postfix/smtpd[24855]: connect from
unknown[182.194.198.88]
50. Jun 6 11:25:50 ubuntu dovecot: auth: Debug: Loading modules from
directory: /usr/lib/dovecot/modules/auth
51. Jun 6 11:25:50 ubuntu dovecot: auth: Debug: Module loaded:
/usr/lib/dovecot/modules/auth/libdriver_mysql.so
52. Jun 6 11:25:50 ubuntu dovecot: auth: Debug: auth client connected
(pid=0)
53. Jun 6 11:25:50 ubuntu dovecot: auth: Debug: client in:
AUTH#0111#011PLAIN#011service=smtp#011nologin#011lip=176.54.112.18#011rip=182.194.198.88#011resp=AHNhY0BtYWlsc2FjLmZyaW9ubGluZS5jb20uYnIAcTF3MmUzcjQ=
54. Jun 6 11:25:50 ubuntu dovecot: auth-worker(24860): Debug: Loading
modules from directory: /usr/lib/dovecot/modules/auth
55. Jun 6 11:25:50 ubuntu dovecot: auth-worker(24860): Debug: Module
loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
56. Jun 6 11:25:50 ubuntu dovecot: auth-worker(24860):
mysql(127.0.0.1): Connected to database postfixadmin
57. Jun 6 11:25:50 ubuntu dovecot: auth-worker(24860): Debug: sql(
s...@domain.org,182.194.198.88): query: SELECT username as user,
password, '/emails/vmail/domain.org/sac' as userdb_home,
'maildir:/emails/vmail/domain.org/sac' as userdb_mail, 150 as
userdb_uid, 8 as userdb_gid FROM mailbox WHERE username = 's...@domain.org'
AND active = '1'
58. Jun 6 11:25:50 ubuntu dovecot: auth: Debug: client out:
OK#0111#011user=s...@mdomain.org
59. Jun 6 11:25:54 ubuntu postfix/smtpd[24855]: NOQUEUE: filter: RCPT
from unknown[182.194.198.88]: <unknown[182.194.198.88]>: Client host
triggers FILTER lmtp:[127.0.0.1]:11124; from=<s...@domain.org> to=<
s...@domain.org> proto=ESMTP helo=<[192.168.1.100]>
60. Jun 6 11:25:54 ubuntu postfix/smtpd[24855]: NOQUEUE: reject: RCPT
from unknown[182.194.198.88]: 550 5.1.1 <s...@domain.org>: Recipient
address rejected: User unknown in virtual mailbox table; from=<
s...@mdomain.org> to=<s...@domain.org> proto=ESMTP helo=<[192.168.1.100]>
61. Jun
2013/5/23 Tiago <syt...@gmail.com>
> Hello Benny, thanks for your answer. I'm using a very similar setup to
> nealessetup.
>
> Here is what I got..
> First - postfix warning:
> postconf: warning: /etc/postfix/main.cf: unused parameter:
> virtual_maps=hash:/etc/postfix/virtual
>
> And refering to the "system aliases", specially on:
> transport_maps = hash:/etc/postfix/transport
> local_recipient_maps = proxy:unix:passwd.byname $alias_maps $transport_maps
> recipient_delimiter = -
>
> I was already using it, but I still getting:
> 550 5.1.1 <s...@example.org>: Recipient address rejected: User unknown in
> virtual mailbox table;
>
> It is checking my postfixadmin mysql table...
>
> So I'm not sure what do I need to make it forward to the dspam-retrain.
>
>
> 2013/5/23 Benny Pedersen <m...@junc.eu>
>
>> Tiago skrev den 2013-05-23 21:38:
>>
>> > All I've found is related to system aliases which is not my case.
>>
>> well it is
>>
>> > What's the right way to make it work? Any tips would help a lot.
>>
>> http://dspamwiki.expass.de/Installation/Postfix/NealesSetup
>>
>> there is imho no right way, there is always more problems :)
>>
>> --
>> senders that put my email into body content will deliver it to my own
>> trashcan, so if you like to get reply, dont do it
>>
>>
>> ------------------------------------------------------------------------------
>> Try New Relic Now & We'll Send You this Cool Shirt
>> New Relic is the only SaaS-based application performance monitoring
>> service
>> that delivers powerful full stack analytics. Optimize and monitor your
>> browser, app, & servers with just a few lines of code. Try New Relic
>> and get this awesome Nerd Life shirt!
>> http://p.sf.net/sfu/newrelic_d2d_may
>> _______________________________________________
>> Dspam-user mailing list
>> Dspam-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspam-user
>>
>
>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user