Author Topic: i can send email but i can't receive  (Read 24759 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
i can send email but i can't receive
« on: April 26, 2018, 09:38:24 AM »
good morning
I'm trying to configure postfix in cwp on my vps.
I created from the dns panel of my domain manager an A record mail.mydomain.com pointing to the ip of my vps and an mx record pointing to mail.mydomain.com
the mail server does not have errors during configuration and everything seems fine
when I send an email from Roundcube from my new address to the same address, the mail starts without problems and tells me that the email has been correctly sent.
Unfortunately, after a while, he returns an error message saying that the email account does not exist on the server.
obviously the email account exists and is correctly set up in cwp.
I also tried to send from gmail to the address set in cwp but it tells me that the account does not exist on the destination server.
I tried the various solutions suggested in other forum posts but I can not solve the problem in any way.
can someone give me directions on how to solve the problem?


Offline
*
Re: i can send email but i can't receive
« Reply #1 on: April 17, 2020, 07:55:16 PM »
good morning
I'm trying to configure postfix in cwp on my vps.
I created from the dns panel of my domain manager an A record mail.mydomain.com pointing to the ip of my vps and an mx record pointing to mail.mydomain.com
the mail server does not have errors during configuration and everything seems fine
when I send an email from Roundcube from my new address to the same address, the mail starts without problems and tells me that the email has been correctly sent.
Unfortunately, after a while, he returns an error message saying that the email account does not exist on the server.
obviously the email account exists and is correctly set up in cwp.
I also tried to send from gmail to the address set in cwp but it tells me that the account does not exist on the destination server.
I tried the various solutions suggested in other forum posts but I can not solve the problem in any way.
can someone give me directions on how to solve the problem?


even i am facing the same problem.

Offline
**
Re: i can send email but i can't receive
« Reply #2 on: April 17, 2020, 08:35:37 PM »
tail -f /var/log/maillog and check more information about the error

Offline
**
Re: i can send email but i can't receive
« Reply #3 on: April 17, 2020, 08:38:22 PM »
tail -f /var/log/maillog and check more information about the error

Offline
*
Re: i can send email but i can't receive
« Reply #4 on: April 17, 2020, 09:09:52 PM »
Settings - email - email manager
Untick "Drop all emails if no rDNS/PTR" for start and rebuild.
Edit /etc/postfix/main.cf and make sure there is "inet_protocols = ipv4" line. If there isn't add it above "inet_interfaces = all", save, restart postfix.

tail -f /var/log/maillog and test sending mail to and from account., watch the log output.

Re: i can send email but i can't receive
« Reply #5 on: April 17, 2020, 09:33:16 PM »
Untick "Drop all emails if no rDNS/PTR" for start and rebuild.
Not such a good move. Enjoy getting more spam.  :o

Offline
*
Re: i can send email but i can't receive
« Reply #6 on: April 17, 2020, 10:38:38 PM »
Untick "Drop all emails if no rDNS/PTR" for start and rebuild.
Not such a good move. Enjoy getting more spam.  :o

Maybe you should stop this, buddy.

Of course its better to disable that option if to debug setup and find out whats wrong. Once postfix starts working properly, that option can be enabled.

Re: i can send email but i can't receive
« Reply #7 on: April 17, 2020, 10:46:53 PM »
Untick "Drop all emails if no rDNS/PTR" for start and rebuild.
Not such a good move. Enjoy getting more spam.  :o

Maybe you should stop this, buddy.

Of course its better to disable that option if to debug setup and find out whats wrong. Once postfix starts working properly, that option can be enabled.
Then, you should've made that clear?

Offline
*
Re: i can send email but i can't receive
« Reply #8 on: April 17, 2020, 10:55:43 PM »
Then, you should've made that clear?
You need to understand that some people like to do things step by step, there is nothing wrong in that. Try to be more cautious with your posts, possibly even understand that lots of mail servers don't have PTR record set and yet they are legit and not spammers.

Offline
*
Re: i can send email but i can't receive
« Reply #9 on: April 18, 2020, 02:02:17 PM »
This is the log file from my server:

user@domain.com# tail -f maillog
Quote
postfix/smtpd[9860]: connect from mail-io1-f44.google.com[209.85.166.44]
Apr 18 19:24:25 domain postfix/smtpd[9860]: TLS SNI <domain.com> from mail-io1-f44.google.com[209.85.166.44] not matched, using default chain
Apr 18 19:24:25 domain postfix/smtpd[9860]: Anonymous TLS connection established from mail-io1-f44.google.com[209.85.166.44]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Apr 18 19:24:26 domain postfix/smtpd[9860]: 607FAB0834: client=mail-io1-f44.google.com[209.85.166.44]
Apr 18 19:24:26 domain postfix/cleanup[9660]: 607FAB0834: message-id=<CA+52me+3aNnPF64gHzgGBH6xq6e9syh7kMpzBxCra78PS1MGzw@mail.gmail.com>
Apr 18 19:24:26 domain opendkim[7904]: 607FAB0834: mail-io1-f44.google.com [209.85.166.44] not internal
Apr 18 19:24:26 domain opendkim[7904]: 607FAB0834: not authenticated
Apr 18 19:24:26 domain opendkim[7904]: 607FAB0834: DKIM verification successful
Apr 18 19:24:26 domain postfix/qmgr[9418]: 607FAB0834: from=<user@gmail.com>, size=3428, nrcpt=1 (queue active)
Apr 18 19:24:26 domain postfix/local[9706]: 607FAB0834: to=<admin@domain.com>, relay=local, delay=0.29, delays=0.19/0.01/0/0.09, dsn=5.1.1, status=bounced (unknown user: "admin")
Apr 18 19:24:26 domain postfix/cleanup[9660]: A4282B0804: message-id=<20200418135426.A4282B0804@domain.com>
Apr 18 19:24:26 domain postfix/qmgr[9418]: A4282B0804: from=<>, size=5406, nrcpt=1 (queue active)
Apr 18 19:24:26 domain postfix/bounce[9899]: 607FAB0834: sender non-delivery notification: A4282B0804
Apr 18 19:24:26 domain postfix/qmgr[9418]: 607FAB0834: removed
 postfix/smtpd[9860]: disconnect from mail-io1-f44.google.com[209.85.166.44] ehlo=2 starttls=1 mail=1 rcpt=1 bdat=1 quit=1 commands=7

I can't understand whats the problem with my mail server.

Offline
*
Re: i can send email but i can't receive
« Reply #10 on: April 18, 2020, 02:50:05 PM »
Postfix says unknown account, try creating another one for test, restart  postfix just in case.
Also check mysql -> postfix -> mailbox table for list of mail accounts.

Offline
*
Re: i can send email but i can't receive
« Reply #11 on: April 18, 2020, 07:27:09 PM »
Postfix says unknown account, try creating another one for test, restart  postfix just in case.
Also check mysql -> postfix -> mailbox table for list of mail accounts.

created new account and restarted postfix service. The account does exists in above mentioned database. But still I have the same problem and the log is same as i posted there. But when I login to webmail using my server email id and password I get this in my log file

Code: [Select]
Apr 19 00:52:09 domain postfix/smtpd[19736]: warning: database /etc/postfix/vmail_ssl.map.db is older than source file /etc/postfix/vmail_ssl.map

No idea why I am getting this now.
« Last Edit: April 18, 2020, 07:29:17 PM by ManjunathPM »

Offline
*
Re: i can send email but i can't receive
« Reply #12 on: April 18, 2020, 08:45:15 PM »
Set "debug_peer_level" to 4 in /etc/postfix/main.cf , restart postfix again and check startup log. If there is some problem with configuration it should be reported.

It could be that somehow you got alien config (maybe due to installing wrong postfix with yum, or another software).

I installed CWP on two servers, and besides setting up interfaces and protocols everything else worked perfectly without any interventions.

Offline
*
Re: i can send email but i can't receive
« Reply #13 on: April 19, 2020, 04:14:54 AM »
Set "debug_peer_level" to 4 in /etc/postfix/main.cf , restart postfix again and check startup log. If there is some problem with configuration it should be reported.

It could be that somehow you got alien config (maybe due to installing wrong postfix with yum, or another software).

I installed CWP on two servers, and besides setting up interfaces and protocols everything else worked perfectly without any interventions.

changed main.cf file with above value and still the log file looks same
Quote
Apr 19 09:38:37 domain postfix/smtpd[3090]: warning: database /etc/postfix/vmail_ssl.map.db is older than source file /etc/postfix/vmail_ssl.map
Apr 19 09:38:38 domain postfix/smtpd[3090]: connect from mail-wr1-f54.google.com[209.85.221.54]
Apr 19 09:38:39 domain postfix/smtpd[3090]: TLS SNI domain.com from mail-wr1-f54.google.com[209.85.221.54] not matched, using default chain
Apr 19 09:38:39 domain postfix/smtpd[3090]: Anonymous TLS connection established from mail-wr1-f54.google.com[209.85.221.54]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Apr 19 09:38:40 domain postfix/smtpd[3090]: 95034B0834: client=mail-wr1-f54.google.com[209.85.221.54]
Apr 19 09:38:40 domain postfix/cleanup[3061]: 95034B0834: message-id=<CAG3OEMopEtLNSqZnjWTirV1e=dYwYoGgR2hFTE4iP=CbCrdo0Q@mail.gmail.com>
Apr 19 09:38:40 domain opendkim[7904]: 95034B0834: mail-wr1-f54.google.com [209.85.221.54] not internal
Apr 19 09:38:40 domain opendkim[7904]: 95034B0834: not authenticated
Apr 19 09:38:40 domain opendkim[7904]: 95034B0834: DKIM verification successful
Apr 19 09:38:40 domain postfix/qmgr[2941]: 95034B0834: from=<user@gmail.com>, size=2782, nrcpt=1 (queue active)
Apr 19 09:38:41 domain postfix/local[3071]: 95034B0834: to=<user@domain.com>, relay=local, delay=0.49, delays=0.36/0.01/0/0.11, dsn=5.1.1, status=bounced (unknown user: "user")
Apr 19 09:38:41 domain postfix/cleanup[3061]: 0E1E7D7915: message-id=<20200419040841.0E1E7D7915@domain.com>
Apr 19 09:38:41 domain postfix/qmgr[2941]: 0E1E7D7915: from=<>, size=4779, nrcpt=1 (queue active)
Apr 19 09:38:41 domain postfix/bounce[3098]: 95034B0834: sender non-delivery notification: 0E1E7D7915
Apr 19 09:38:41 domain postfix/qmgr[2941]: 95034B0834: removed
Apr 19 09:38:41 domain postfix/smtpd[3090]: disconnect from mail-wr1-f54.google.com[209.85.221.54] ehlo=2 starttls=1 mail=1 rcpt=1 bdat=1 quit=1 commands=7
Apr 19 09:38:43 domain postfix/smtp[3099]: 0E1E7D7915: to=<user@gmail.com>, relay=gmail-smtp-in.l.google.com[172.217.194.27]:25, delay=2.4, delays=0.01/0.12/1.2/1.1, dsn=2.0.0, status=sent (250 2.0.0 OK  1587269323 e21si20599261pga.384 - gsmtp)
Apr 19 09:38:43 domain postfix/qmgr[2941]: 0E1E7D7915: removed
Apr 19 09:39:02 domain postfix/pickup[2940]: 6DB4DB0834: uid=0 from=<root>

Is there any solution to fix the config.?

Offline
*
Re: i can send email but i can't receive
« Reply #14 on: April 19, 2020, 12:46:10 PM »
$ postmap -F hash:/etc/postfix/vmail_ssl.map
$ service postfix reload
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.