Advertisement
Guest User

Untitled

a guest
Apr 6th, 2017
1,058
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. virtual_alias_maps = pcre:/etc/postfix/forward_user.pcre, ...
  2.  
  3. /^(.*)@adomain.example/ $(1)@other-domain.example
  4.  
  5. virtual_alias_maps = regexp:/etc/postfix/virtual
  6.  
  7. /^([^@]*)@olddomain/ $(1)@newdomain
  8.  
  9. | source | destination |
  10. |==============|===============|
  11. | @example.com | @yoursite.com |
  12.  
  13. virtual_alias_domains = alias-destination1.com alias-destination2.com
  14. virtual_alias_maps = hash:/etc/postfix/virtual
  15.  
  16. # I want @true-destination.com to have two incoming aliases
  17. @alias-destination1.com @true-destination.com
  18. @alias-destination2.com @true-destination.com
  19.  
  20. # telnet localhost 25
  21. Trying 127.0.0.1...
  22. Connected to localhost.
  23. Escape character is '^]'.
  24. 220 smtp.myserver.com ESMTP Postfix
  25. HELO smtp.myserver.com
  26. 250 smtp.myserver.com
  27. MAIL FROM:<somebody@gmail.com>
  28. RCPT TO:<anyuser@alias-destination1.com>
  29. 250 2.1.5 Ok
  30. DATA
  31. 354 End data with <CR><LF>.<CR><LF>
  32. Message-ID: <4DC3723F.8010907@myserver.com>
  33. Date: Thu, 05 May 2011 23:59:59 -0400
  34. From: Some Body <somebody@gmail.com>
  35. To: anyuser@alias-destination1.com
  36. Subject: Hello
  37. Just testing.
  38. .
  39.  
  40. Apr 6 22:39:43 smtp-a postfix/smtpd[4411]: connect from localhost[127.0.0.1]
  41. Apr 6 22:39:43 smtp-a postfix/smtpd[4411]: 6B47641AF2: client=localhost[127.0.0.1]
  42. Apr 6 22:39:43 smtp-a postfix/cleanup[3706]: 6B47641AF2: message-id=<4DC3723F.8010907@myserver.com>
  43. Apr 6 22:39:43 smtp-a postfix/qmgr[3681]: 6B47641AF2: from=<somebody@gmail.com>, size=1115, nrcpt=1 (queue active)
  44. Apr 6 22:39:43 smtp-a postfix/smtpd[4411]: disconnect from localhost[127.0.0.1]
  45. Apr 6 22:39:43 smtp-a amavis-incoming[2159]: (02159-13) Passed CLEAN {RelayedInternal}, LOCAL [127.0.0.1]:42426 [127.0.0.1] <somebody@gmail.com> -> <anyuser@alias-destination1.com>, Queue-ID: 5C61F41AE5, Message-ID: <4DC3723F.8010907@myserver.com>, mail_id: hUbzH1PtXlzl, Hits: 2.605, size: 394, queued_as: 6B47641AF2, 1224 ms
  46. Apr 6 22:39:43 smtp-a postfix/lmtp[3687]: 5C61F41AE5: to=<anyuser@alias-destination1.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=25, delays=24/0/0/1.2, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 6B47641AF2)
  47. Apr 6 22:39:43 smtp-a postfix/qmgr[3681]: 5C61F41AE5: removed
  48.  
  49. Apr 6 22:39:43 smtp-a postfix/smtp[3684]: 6B47641AF2: to=<anyuser@true-destination.com>, orig_to=<anyuser@alias-destination1.com>, relay=10.0.0.245[10.0.0.245]:2525, delay=0.03, delays=0.01/0/0/0.02, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 705AA40459)
  50. Apr 6 22:39:43 smtp-a postfix/qmgr[3681]: 6B47641AF2: removed
  51.  
  52. recipient_bcc_maps = pcre:/etc/postfix/forward_bcc.pcre
  53.  
  54. /^user@olddomain.com/ user@newdomain.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement