Guest User

Untitled

a guest
Jun 5th, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. ## main.cf
  2. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  3. biff = no
  4. append_dot_mydomain = no
  5. readme_directory = no
  6. myhostname = mydomain.com
  7. alias_maps = hash:/etc/aliases
  8. alias_database = hash:/etc/aliases
  9. myorigin = /etc/mailname
  10. mydestination = mydomain.com, localhost
  11. relayhost =
  12. mynetworks = 127.0.0.0/8
  13. mailbox_size_limit = 0
  14. recipient_delimiter = +
  15. inet_interfaces = all
  16. inet_protocols = all
  17. home_mailbox = Maildir/
  18.  
  19. #virtual_mailbox_domains = mydomain.com
  20. virtual_mailbox_base = /var/mail/vhosts
  21. virtual_mailbox_maps = hash:/etc/postfix/vmailbox
  22. virtual_minimum_uid = 100
  23. virtual_uid_maps = static:5000
  24. virtual_gid_maps = static:5000
  25.  
  26. ## vmailbox
  27. info@mydomain.com mydomain.com/info/
  28.  
  29. ## Commands
  30. $ mkdir -p /var/mail/vhosts/info
  31. $ postmap /etc/postfix/vmailbox
  32. $ /etc/init.d/postfix restart
  33. $ sendmail info@mydomain.com
  34. subject: Test
  35. ^D
  36.  
  37. ## /var/log/mail.info
  38. Feb 23 13:34:12 dell postfix/pickup[7512]: 7F4B21B70D54: uid=0 from=<root>
  39. Feb 23 13:34:12 dell postfix/cleanup[20132]: 7F4B21B70D54: message-id=<20090223133412.7F4B21B70D54@mydomain.com>
  40. Feb 23 13:34:12 dell postfix/qmgr[7510]: 7F4B21B70D54: from=<root@mydomain.com>, size=289, nrcpt=1 (queue active)
  41. Feb 23 13:34:12 dell postfix/local[20155]: 7F4B21B70D54: to=<info@mydomain.com>, relay=local, delay=9.5, delays=9.5/0.01/0/0.03, dsn=5.1.1, status=bounced (unknown user: "info")
  42. Feb 23 13:34:12 dell postfix/cleanup[20132]: 9C43A1B70D58: message-id=<20090223133412.9C43A1B70D58@mydomain.com>
  43. Feb 23 13:34:12 dell postfix/bounce[20157]: 7F4B21B70D54: sender non-delivery notification: 9C43A1B70D58
  44. Feb 23 13:34:12 dell postfix/qmgr[7510]: 7F4B21B70D54: removed
  45. Feb 23 13:34:12 dell postfix/qmgr[7510]: 9C43A1B70D58: from=<>, size=1941, nrcpt=1 (queue active)
  46. Feb 23 13:34:12 dell postfix/local[20155]: 9C43A1B70D58: to=<joe@mydomain.com>, orig_to=<root@mydomain.com>, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
  47. Feb 23 13:34:12 dell postfix/qmgr[7510]: 9C43A1B70D58: removed
Add Comment
Please, Sign In to add comment