Postfix is responsible to handle any mail clients in your Linux server
Make sure the main.cf has the correct content , I have given the sample content here from my server, you can change the value of max_size_limit , as it is responsible for max size of attachment in mail, relayhost is your SMTP server ip
message_size_limit=90240000
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfixinet_interfaces = localhost
inet_protocols = ipv4mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550relayhost = <your_smtp_server>:25alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliasesdebug_peer_level = 3debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
debug_peer_list = colomeargentina.com
Flush the queued mails
postfix flush
restart the postfix
service postfix reload
service postfix restart
Send a test mail.. Bhoomm 🎉!!!!! (that's my email id feel free to reach me out for comments/feedbacks 😊 )
echo “hello Beautiful” | mailx -vs “Sub: Just hi” jain.sampada19@gmail.com