LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-28-2019, 04:54 PM   #1
albug1
LQ Newbie
 
Registered: Nov 2018
Posts: 4

Rep: Reputation: Disabled
server mail failed to send nor receive, 3days it was working


here is my main.cf under /etc/postfix and i think its where the problem but i have failed to figured out

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/mail.build-africauganda.org.crt
smtpd_tls_key_file = /etc/ssl/private/mail.build-africauganda.org.key
#smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_rbl_client zen.spamhaus.org,reject_rbl_client bl.spamcop.net,reject_rbl_client cbl.abuseat.org, permit
myhostname = mail.build-africauganda.org
mydomain = build-africauganda.org
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost.$mydomain, mail.build-africauganda.org, build-africauganda.org, mail, localhost.localdomain, localhost
mynetworks = 212.88.98.60/30 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.0/24
# mailbox_command = procmail -a "$EXTENSION"
mailbox_command = /usr/lib/dovecot/deliver
mailbox_size_limit = 0
recipient_delimiter = +
home_mailbox = Maildir/
smtpd_tls_auth_only = no
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
tls_random_source = dev:/dev/urandom

#smtpd_sasl_auth_enable = yes
#broken_sasl_auth_clients = yes
#smtpd_sasl_security_options = noanonymous
#smtpd_tls_security_level = encrypt
#smtpd_sasl_type = dovecot


when u compose a mail and send, it shows as if it has been sent but it doesnt reach the recipient.

FROM MAIL.LOG sample

Mar 29 01:04:38 mail postfix/smtpd[21806]: connect from mail-eopbgr00120.outbound.protection.outlook.com[40.107.0.120]
Mar 29 01:04:39 mail postfix/smtpd[21806]: NOQUEUE: reject: RCPT from mail-eopbgr00120.outbound.protection.outlook.com[40.107.0.120]: 550 5.1.1 <obwola@build-africauganda.org>: Recipient address rejected: User unknown in local recipient table; from=<rnambooze@UAP-GROUP.COM> to=<obwola@build-africauganda.org> proto=ESMTP helo=<EUR02-AM5-obe.outbound.protection.outlook.com>
Mar 29 01:04:39 mail postfix/smtpd[21806]: NOQUEUE: reject: RCPT from mail-eopbgr00120.outbound.protection.outlook.com[40.107.0.120]: 550 5.1.1 <wandira@build-africauganda.org>: Recipient address rejected: User unknown in local recipient table; from=<rnambooze@UAP-GROUP.COM> to=<wandira@build-africauganda.org> proto=ESMTP helo=<EUR02-AM5-obe.outbound.protection.outlook.com>
Mar 29 01:04:40 mail postfix/smtpd[21806]: disconnect from mail-eopbgr00120.outbound.protection.outlook.com[40.107.0.120]

FROM MAIL.ERR

Mar 29 00:34:58 mail postfix/trivial-rewrite[21093]: error: open database /etc/postfix/transport.db: No such file or directory
Mar 29 00:37:26 mail postfix/proxymap[21145]: error: unsupported dictionary type: pgsql
Mar 29 00:37:42 mail postfix/proxymap[21193]: error: unsupported dictionary type: pgsql
Mar 29 00:37:42 mail postfix/proxymap[21193]: error: unsupported dictionary type: pgsql
Mar 29 00:37:42 mail postfix/proxymap[21193]: error: unsupported dictionary type: pgsql
Mar 29 00:37:42 mail postfix/trivial-rewrite[21195]: error: open database /etc/postfix/transport.db: No such file or directory
 
Old 03-29-2019, 10:32 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
Well, let's look at the log (note: I've added code tags around the log to inrease readability):
Quote:
Originally Posted by albug1 View Post
FROM MAIL.LOG sample
Code:
Mar 29 01:04:38 mail postfix/smtpd[21806]: connect from mail-eopbgr00120.outbound.protection.outlook.com[40.107.0.120]
Mar 29 01:04:39 mail postfix/smtpd[21806]: NOQUEUE: reject: RCPT from mail-eopbgr00120.outbound.protection.outlook.com[40.107.0.120]: 550 5.1.1 <obwola@build-africauganda.org>: Recipient address rejected: User unknown in local recipient table; from=<rnambooze@UAP-GROUP.COM> to=<obwola@build-africauganda.org> proto=ESMTP helo=<EUR02-AM5-obe.outbound.protection.outlook.com>
So your server doesn't recognize the recipient address as a valid local (virtual) user (in red), and thus the mail is rejected.

And the reason for this...
Quote:
Originally Posted by albug1 View Post
Code:
Mar 29 00:34:58 mail postfix/trivial-rewrite[21093]: error: open database /etc/postfix/transport.db: No such file or directory
Mar 29 00:37:26 mail postfix/proxymap[21145]: error: unsupported dictionary type: pgsql
Mar 29 00:37:42 mail postfix/proxymap[21193]: error: unsupported dictionary type: pgsql
Mar 29 00:37:42 mail postfix/proxymap[21193]: error: unsupported dictionary type: pgsql
Mar 29 00:37:42 mail postfix/proxymap[21193]: error: unsupported dictionary type: pgsql
Mar 29 00:37:42 mail postfix/trivial-rewrite[21195]: error: open database /etc/postfix/transport.db: No such file or directory
...is that the transport database is missing. There may also be other configuration errors related to the PostgreSQL database containing your virtual users.

You could start by running postmap /etc/postfix/transport to rebuild /etc/postfix/transport.db, then restart postfix and look at the logs again.
 
1 members found this post helpful.
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] modprobe vboxdrv error.. I'm stuck for 3days gonny95 Linux - Newbie 14 08-04-2014 05:27 AM
[SOLVED] Can send and receive plain text mail, but can't receive on html pravada Linux - Server 6 05-20-2013 03:25 PM
[SOLVED] Can send and receive plain text mail, but can't receive on html pravada Linux - Software 1 05-17-2013 03:13 PM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
eth0 prob, can't connect to internet, xandros 3.0.2 3days new to linux layman's fix ? expat Linux - Networking 1 03-25-2006 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:26 PM.

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