Advertisement
Guest User

Untitled

a guest
Sep 18th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. [root@sky postfix]# postconf -n
  2. alias_database = $alias_maps
  3. alias_maps = hash:/etc/postfix/aliases
  4. command_directory = /usr/sbin
  5. config_directory = /etc/postfix
  6. daemon_directory = /usr/lib/postfix
  7. data_directory = /var/lib/postfix
  8. debug_peer_level = 2
  9. html_directory = no
  10. mail_owner = postfix
  11. mailq_path = /usr/bin/mailq
  12. manpage_directory = /usr/share/man
  13. mydomain = kent.ac.uk
  14. newaliases_path = /usr/bin/newaliases
  15. queue_directory = /var/spool/postfix
  16. readme_directory = no
  17. sample_directory = /etc/postfix/sample
  18. sendmail_path = /usr/sbin/sendmail
  19. setgid_group = postdrop
  20. unknown_local_recipient_reject_code = 550
  21. [root@sky postfix]# hostname
  22. sky
  23.  
  24.  
  25. In /etc/postfix/main.cf the following overriden (rest defaults)
  26.  
  27. mydomain=kent.ac.uk
  28.  
  29.  
  30.  
  31. [andrew@sky ~]$ sendmail ar290@kent.ac.uk
  32. Test this
  33. is a test
  34.  
  35.  
  36. ^^ this is received from "andrew@kent.ac.uk", not from "andrew@sky.kent.ac.uk"
  37.  
  38.  
  39. [andrew@sky ~]$ sendmail -f andrew@sky.kent.ac.uk ar290@kent.ac.uk
  40. More Test
  41. >> Log entry:
  42. Jun 19 14:48:52 sky postfix/qmgr[4487]: 829B2DABC1: from=<andrew@sky.kent.ac.uk>, size=263, nrcpt=1 (queue active)
  43. Jun 19 14:48:52 sky postfix/smtp[4492]: 829B2DABC1: to=<ar290@kent.ac.uk>, relay=mx6.kent.ac.uk[129.12.21.37]:25, delay=4.2, delays=4.1/0/0.01/0.07, dsn=2.0.0, status=sent (250 OK id=1QYIN3-0003HG-Jk)
  44. Jun 19 14:48:52 sky postfix/qmgr[4487]: 829B2DABC1: removed
  45.  
  46.  
  47.  
  48. Both of the above
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement