LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-22-2018, 12:47 PM   #1
arahmancsd
LQ Newbie
 
Registered: Nov 2018
Posts: 10

Rep: Reputation: Disabled
Sending Local email fails in Jessie 8.11


I am trying to send email to root@localhost with local configuration of postfix in jessie 8.11. However, I am getting error sending email.

--mail.log--
Nov 22 18:39:27 friend postfix/cleanup[2059]: 4B5AC64BE0: message-id=<20181122183927.4B5AC64BE0@localhost>
Nov 22 18:39:27 friend postfix/qmgr[2054]: 4B5AC64BE0: from=<>, size=2037, nrcpt=1 (queue active)
Nov 22 18:39:27 friend postfix/bounce[2063]: 4930164BDE: sender non-delivery notification: 4B5AC64BE0
Nov 22 18:39:27 friend postfix/qmgr[2054]: 4930164BDE: removed
Nov 22 18:39:27 friend postfix/error[2061]: 4B5AC64BE0: to=<root@friend>, relay=none, delay=0, delays=0/0/0/0, dsn=5.0.0, status=bounced (friend)
Nov 22 18:39:27 friend postfix/qmgr[2054]: 4B5AC64BE0: removed


--postfix main.cf--
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
default_transport = error
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
myhostname = localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
readme_directory = no
recipient_delimiter = +
relay_transport = error
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes


--Test sending email --
echo "Test Email message body" | mail -s "Email test subject" root@localhost
 
Old 11-24-2018, 04:34 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
please enter this command, and show us its complete output, incl. the command itself:
Code:
echo "Test Email message body" | mail -vs "Email test subject" root@localhost
 
Old 11-24-2018, 06:29 AM   #3
arahmancsd
LQ Newbie
 
Registered: Nov 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Solved it with adding an account user and configuration of aliases
 
Old 11-25-2018, 02:41 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
please share your solution, others will benefit.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Devuan 1.0 Jessie beta 2: That’s Debian Jessie minus systemd LXer Syndicated Linux News 0 12-02-2016 02:41 AM
Postfix local email server fails to deliver local mail 2UCowpoke Linux - Server 2 09-22-2015 03:34 AM
Sending mail between local users (other than root) fails using sendmail dbradshaw Linux - Server 3 12-29-2007 12:06 AM
qmail server, local users sending mail with incorrect email addresses HoundDog Linux - Networking 2 01-04-2006 02:40 AM
local email sending/receiving problem htm Linux - Software 2 04-09-2004 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration