[:solved]Mail: Refused to talk to me! Postfix issue

SamJain
1 min readDec 16, 2020

--

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 = postfix
inet_interfaces = localhost
inet_protocols = ipv4
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
relayhost = <your_smtp_server>:25alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 3debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

SamJain
SamJain

Written by SamJain

Hi, I am Sampada Jain, a system and Cloud Technologies enthusiast. I find learning technologies easy and love to trouble-shoot errors. Passionate Linux learner.

No responses yet

Write a response