send mail from null client to central server but mail removed

i’m getting stuck with postfix problem. here the problem is : – null client forward the mail to central server. but,central server shows that connect from unknown and lastly this mail is removed
here null client maillog:-

Aug 27 08:59:11 c postfix/pickup[6258]: AD3D510C3ADA: uid=0 from=<root>
Aug 27 08:59:11 c postfix/cleanup[6865]: AD3D510C3ADA: message-id=<20200827025911.AD3D510C3ADA@c.client.local>
Aug 27 08:59:11 c postfix/qmgr[6259]: AD3D510C3ADA: from=<root@client.local>, size=421, nrcpt=1 (queue active)
Aug 27 08:59:11 c postfix/error[6868]: AD3D510C3ADA: to=<smb2@192.68.0.100>, relay=none, delay=0.13, delays=0.09/0.02/0/0.02, dsn=5.1.3, status=bounced (bad address syntax)
Aug 27 08:59:11 c postfix/cleanup[6865]: BFB4F10C4552: message-id=<20200827025911.BFB4F10C4552@c.client.local>
Aug 27 08:59:11 c postfix/qmgr[6259]: BFB4F10C4552: from=<>, size=2121, nrcpt=1 (queue active)
Aug 27 08:59:11 c postfix/bounce[6869]: AD3D510C3ADA: sender non-delivery notification: BFB4F10C4552
Aug 27 08:59:11 c postfix/qmgr[6259]: AD3D510C3ADA: removed
Aug 27 08:59:11 c postfix/smtp[6870]: BFB4F10C4552: to=<root@client.local>, relay=192.168.0.100[192.168.0.100]:25, delay=0.15, delays=0/0.02/0.08/0.05, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as E91E618B06AB)
Aug 27 08:59:11 c postfix/qmgr[6259]: BFB4F10C4552: removed

and central server maillog:-

Aug 27 09:18:44 main postfix/smtpd[4729]: connect from unknown[192.168.0.110]
Aug 27 09:18:44 main postfix/smtpd[4729]: E91E618B06AB: client=unknown[192.168.0.110]
Aug 27 09:18:44 main postfix/cleanup[4732]: E91E618B06AB: message-id=<20200827025911.BFB4F10C4552@c.client.local>
Aug 27 09:18:44 main postfix/qmgr[4202]: E91E618B06AB: from=<>, size=2303, nrcpt=1 (queue active)
Aug 27 09:18:44 main postfix/smtpd[4729]: disconnect from unknown[192.168.0.110]
Aug 27 09:18:44 main postfix/smtp[4733]: E91E618B06AB: to=<root@client.local>, relay=none, delay=0.05, delays=0.02/0.02/0.01/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=client.local type=AAAA: Host not found)
Aug 27 09:18:44 main postfix/qmgr[4202]: E91E618B06AB: removed

.what can i do now??

Go to Source
Author: tamjidul islam

Email does not reach external mail server (postfix)

I have a mail server on mail.domainA.com which is working absolutely fine if I send email to name@domainA.com. I then configured a second domain (domainB.com) in bind9 (same server) to use mail.domainA.com as the mailing server. However, when I send email to someone@domainB.com I see no logs in POSTFIX, so its like their is no contact with the mail server.

Note: I am using Cloudflare. So even if I expose mail.domainA.com my mailing server, still there is nothing in logs, somehow domainB.com is not contacting mail.domainA.com.

My bind9 configuration for DomainA:

; MX Record
domainA.com.         IN      MX      10      mail.domainA.com.
; A record for nameserver
@                       IN      A       1.1.1.1
mail                    IN      A       1.1.1.1
domainA.com.         IN      TXT     "v=spf1 a mx ip4:1.1.1.1 ~all"
mail                    IN      TXT     "v=spf1 a mx ip4:1.1.1.1 ~all"

My bind9 configuration for DomainB:

; MX Record
domainB.com.           IN      MX      10      mail.domainA.com.
; A record for nameserver
@                       IN      A       1.1.1.1
mail                    IN      A       1.1.1.1
mail                    IN      TXT     "v=spf1 mx a ip4:1.1.1.1 ~all"
domainB.com.           IN      TXT     "v=spf1 mx a ip4:1.1.1.1 ~all"

I also have the same setup on cloudflare.

My postfix (main.cf) config file:

myhostname = mail.domainA.com
mydomain = domainA.com
myorigin = domainA.com
virtual_alias_domains = domainA.com domainB.com

Go to Source
Author: nix

Postfix and Dovecot – No encryption on SMTP

currently I’m working on my veary own mailserver but as for now I can’t get SMTP up correctly.
I use Dovecot with postfix.
When I try to ad my server to my mail client it tells me:
Outgoing: SMTP (my servers address):587, No SSL, Authentification: Normal password

I don’t know why I get this result since I thought I had everything set up.
I have no experience with postfix till today so I have no idea whats missing or wrong.
Here is my postfix main.cf: https://pastebin.com/S17jWDQd
Here is my dovecot.conf: https://pastebin.com/tMD90Znn
Most of these contents are copied from an iRedMail installation so I think I missed something while copying and modifying for my own use.

Thank you!

Go to Source
Author: BDevGW