Hi Noel, This is how I'm doing it:
[user@mailtest ~]# telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 mailtest.example.com ESMTP Postfix HELO mailtest 250 mailtest.example.com MAIL FROM: <r...@google.com> 250 2.1.0 Ok RCPT TO: pa...@example.com 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> From: j...@mailtest.example.com To: pa...@mailtest.example.com Subject: Testing SCAM Text: ABC123 . 250 2.0.0 Ok: queued as 481D6C76B6 And this is my postfix config: alias_database = hash:/etc/postfix/aliases alias_maps = hash:/etc/postfix/aliases allow_min_user = no biff = no command_directory = /usr/sbin config_directory = /etc/postfix content_filter = amavisfeed:[127.0.0.1]:10024 daemon_directory = /usr/libexec/postfix debug_peer_level = 2 disable_vrfy_command = yes header_checks = pcre:/etc/postfix/header_checks home_mailbox = Maildir/ html_directory = no inet_interfaces = all local_recipient_maps = hash:/etc/postfix/local_recipients mail_owner = postfix mailbox_size_limit = 2228800000 mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man message_size_limit = 25165824 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, mmsin.$mydomain mydomain = mailtest.example.com myhostname = mailtest.example.com mynetworks_style = host myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES relay_domains = $mydestination sample_directory = /usr/share/doc/postfix-2.3.3/samples sender_bcc_maps = hash:/etc/postfix/bcc_maps sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop show_user_unknown_table_name = no smtpd_hard_error_limit = 10 smtpd_helo_required = yes smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_helo_access hash:/etc/postfix/helo_checks, check_sender_access regexp:/etc/postfix/alert_redirections, check_client_access hash:/etc/postfix/live_systems, check_client_access hash:/etc/postfix/rbl_whitelist, check_recipient_access pcre:/etc/postfix/special_recipients, reject_unauth_pipelining, reject_unauth_destination, check_client_access hash:/etc/postfix/opera_access, check_client_access hash:/etc/postfix/epdq_access, check_sender_access pcre:/etc/postfix/sender_address_checks, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_rbl_client truncate.gbudb.net, reject_rbl new.spam.dnsbl.sorbs.net, reject_rbl zen.spamhaus.org, check_sender_access regexp:/etc/postfix/reject_fake_brainstorm, permit smtpd_restriction_classes = insiders_only smtpd_sasl_auth_enable = yes smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_checks smtpd_timeout = 45s smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/pki/tls/certs/mailtest.example.com.crt smtpd_tls_key_file = /etc/pki/tls/private/mailtest.example.com.key smtpd_tls_security_level = may virtual_alias_domains = o2open.co.uk virtual_alias_maps = pcre:/etc/postfix/virtual Thanks, Pawel 2016-10-20 21:41 GMT+01:00 Noel Jones <njo...@megan.vbhcs.org>: > On 10/20/2016 3:08 PM, Paweł Grzesik wrote: > > Just telnet on any host on 25 port and type From: some_real_email > > and email will be send. I think thats how scam works. > > > That doesn't work with postfix. Either your description or your > test method is wrong. > > > $ telnet localhost 25 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > 220 server.example.com ESTMP > From: u...@example.com > 221 2.7.0 Error: I can break rules, too. Goodbye. > Connection closed by foreign host. > > > > >