Since for a long duration time, tmnet already blocked all the connection to smtp port 25 for all the dynamic ip address users. This is due to the most of TMNET IP address was detected as a blacklisted IP Address in the most of realtime database server of IP addresses of verified spam sources and spam operations. (most in the world).
Alternatively, i would configure my postfix services in linux to relay my mail to tmnet SMTP Server.
These instructions i assumed the postfix config files live in /etc/postfix.
1. In /etc/postfix/main.cf add the lines: relayhost = smtp-proxy.tm.net.my:25 smtp_sasl_auth_enable=yes smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd smtp_sasl_security_options=
2. Optionally, also add the lines:
smtp_use_tls = yes smtp_tls_CAfile = /etc/postfix/cert.pem smtp_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache
to enable SSL/TLS when sending outgoing mail. Note that the path info in the second command may be different depending on your system and where you have installed your certificates. The last line may be omitted, but should help reduce CPU cycles verifying the certificate chain when sending outgoing E-Mail.
3. Create a file /etc/postfix/sasl_passwd with the contents: smtp-proxy.tm.net.my userid:password
where userid and password are your domain username and password.Next, change the ownership and permissions on the sasl_passwd file to protect it from unauthorized access. chown root:root /etc/postfix/sasl_passwd chmod 600 /etc/postfix/sasl_passwd
4. Finally, create a database file from the contents of the sasl_passwd file
:postmap hash:/etc/postfix/sasl_passwd
OPTIONAL: If you wish to relay only specific domains via smtp-proxy, You will need to do the following:Remove the relayhost = smtp-proxy.tm.net.my entry in main.cf, if one exists.
5. Add the following line to your main.cf file:
transport_maps = hash:/etc/postfix/transport
6. Edit /etc/postfix/transport and update it with something similar to the following:
# Syntax: .domain transport:relay_host # Specifies specific domains for local delivery my.domain.com : # Specify all subdomains for local delivery .my.domain :
# Specify domains that need to be relayed through smtp-proxy.tm.net.my aol.com relay:smtp-proxy.tm.net.my hotmail.com relay:smtp-proxy.tm.net.my
7. Create a database file from the contents of the transport file:
postmap hash:/etc/postfix/transport
8. Lastly, reload postfix: postfix reload
If you want to change the port that Postfix uses to send outgoing mail we need to change the definition of the SMTP port in /etc/services. i do not have comprehensive instructions for making this change, but some reasonable searching should get you the information you need - when changing /etc/services, though, you should be very careful, as this file controls a large part of the UNIX system's TCP/IP interactions
P/S: I still can flood others SMTP Server (Organization Internet Mail Server) by relaying to tmnet SMTP Server ....heheheh...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment