DHCP on Centos7 error - centos

I was looking my dhcp log and found a few errors.
No idea what are those.
Any chance someone knows ?
Feb 9 15:55:05 cyberzen dhcpd: DHCPINFORM from 10.0.0.13 via eno33557248
Feb 9 15:55:05 cyberzen dhcpd: DHCPACK to 10.0.0.13 (6c:f0:49:f8:e6:f4) via eno33557248
Feb 9 15:55:05 cyberzen dhcpd: send_packet: Operation not permitted
Feb 9 15:55:05 cyberzen dhcpd: dhcp.c:1387: Failed to send 313 byte long packet over fallback interface.
Feb 9 15:55:06 cyberzen NetworkManager[692]: [1455040506.860833] [rdisc/nm-lndp-rdisc.c:251] send_rs(): (eno33557248): cannot send router solicitation: -99.
Feb 9 15:55:07 cyberzen dhcpd: DHCPREQUEST for 10.0.0.16 from 50:e5:49:f6:2b:1e (08194D-CYBERZEN) via eno33557248
Feb 9 15:55:07 cyberzen dhcpd: DHCPACK on 10.0.0.16 to 50:e5:49:f6:2b:1e (08194D-CYBERZEN) via eno33557248
Feb 9 15:55:07 cyberzen dhcpd: send_packet: Operation not permitted
Feb 9 15:55:07 cyberzen dhcpd: dhcp.c:3319: Failed to send 300 byte long packet over fallback interface.
Feb 9 15:55:08 cyberzen dhcpd: DHCPINFORM from 10.0.0.13 via eno33557248
Feb 9 15:55:08 cyberzen dhcpd: DHCPACK to 10.0.0.13 (6c:f0:49:f8:e6:f4) via eno33557248
Feb 9 15:55:08 cyberzen dhcpd: send_packet: Operation not permitted
Feb 9 15:55:08 cyberzen dhcpd: dhcp.c:1387: Failed to send 313 byte long packet over fallback interface.
Feb 9 15:55:10 cyberzen NetworkManager[692]: [1455040510.857309] [rdisc/nm-lndp-rdisc.c:251] send_rs(): (eno33557248): cannot send router solicitation: -99.
Feb 9 15:55:14 cyberzen NetworkManager[692]: [1455040514.861433] [rdisc/nm-lndp-rdisc.c:251] send_rs(): (eno33557248): cannot send router solicitation: -99.
Feb 9 15:55:15 cyberzen dhcpd: DHCPREQUEST for 10.0.0.16 from 50:e5:49:f6:2b:1e (08194D-CYBERZEN) via eno33557248
Feb 9 15:55:15 cyberzen dhcpd: DHCPACK on 10.0.0.16 to 50:e5:49:f6:2b:1e (08194D-CYBERZEN) via eno33557248
Feb 9 15:55:15 cyberzen dhcpd: send_packet: Operation not permitted
Feb 9 15:55:15 cyberzen dhcpd: dhcp.c:3319: Failed to send 300 byte long packet over fallback interface.
Feb 9 15:55:18 cyberzen NetworkManager[692]: [1455040518.861652] [rdisc/nm-lndp-rdisc.c:251] send_rs(): (eno33557248): cannot send router solicitation: -99.
Feb 9 15:55:22 cyberzen NetworkManager[692]: [1455040522.860815] [rdisc/nm-lndp-rdisc.c:251] send_rs(): (eno33557248): cannot send router solicitation: -99.
Feb 9 15:55:26 cyberzen NetworkManager[692]: [1455040526.860962] [rdisc/nm-lndp-rdisc.c:251] send_rs(): (eno33557248): cannot send router solicitation: -99.
Feb 9 15:55:30 cyberzen NetworkManager[692]: [1455040530.861108] [rdisc/nm-lndp-rdisc.c:251] send_rs(): (eno33557248): cannot send router solicitation: -99.
Feb 9 15:55:34 cyberzen NetworkManager[692]: [1455040534.861243] [rdisc/nm-lndp-rdisc.c:251] send_rs(): (eno33557248): cannot send router solicitation: -99.

Sounds like a permissions error when dhcpd accesses the network interface. Which user is the server running as?
Did you start the server with systemctl start dhcpd?
You can check which user it is running as with the command ps aux|grep dhcpd.
On my machine it gives:
dhcpd 11205 0.0 0.8 25024 16560 ? Ss 10:54 0:00 /usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid
Which means that the server is running as the dhcpd user.
cat /etc/passwd|grep dhcpd gives me:
dhcpd:x:177:177:DHCP server:/:/sbin/nologin
P.S: you can format your log output using backticks to make it more readable.

Related

CentOS 8 freeze on gcloud. How to debug?

I run a Google Compute Engine (GCE) instance with CentOS 8 on Google Cloud Platform. The problem is that this instance freezes at random times and the only way to make it work is to stop the instance and start it again. I tried to recreate an instance, this doesn't help.
Here are the screenshots from the GCE monitoring page (freeze from 21:04 Feb 9 to 09:29 Feb 10):
CPU utilization + Network bytes
RAM + Disk space utilization
Network packets
It's a 2vCPU instance with 2Gb RAM. It runs 2 docker containers (1 for Apache, 1 for FastAPI), it also runs 4 cron jobs every minute. When the machine freezes I can't ssh to it, I can't access any webpage, none of the 4 cron jobs sends any data to a logging server.
Any ideas how I can debug this issue?
Here is the /var/log/messages dump in case it's useful:
Feb 9 21:03:07 instance-prod-2 systemd[285938]: Stopped target Basic System.
Feb 9 21:03:07 instance-prod-2 systemd[285938]: Stopped target Paths.
Feb 9 21:03:07 instance-prod-2 systemd[285938]: Stopped target Timers.
Feb 9 21:03:07 instance-prod-2 systemd[285938]: grub-boot-success.timer: Succeeded.
Feb 9 21:03:07 instance-prod-2 systemd[285938]: Stopped Mark boot as successful after the user session has run 2 minutes.
Feb 9 21:03:07 instance-prod-2 systemd[285938]: Stopped target Sockets.
Feb 9 21:03:07 instance-prod-2 systemd[285938]: dbus.socket: Succeeded.
Feb 9 21:03:07 instance-prod-2 systemd[285938]: Closed D-Bus User Message Bus Socket.
Feb 9 21:03:07 instance-prod-2 systemd[285938]: Reached target Shutdown.
Feb 9 21:03:07 instance-prod-2 systemd[285938]: Starting Exit the Session...
Feb 9 21:03:07 instance-prod-2 systemd[1]: user#1000.service: Succeeded.
Feb 9 21:03:07 instance-prod-2 systemd[1]: Stopped User Manager for UID 1000.
Feb 9 21:03:07 instance-prod-2 systemd[1]: Stopping /run/user/1000 mount wrapper...
Feb 9 21:03:07 instance-prod-2 systemd[1]: Removed slice User Slice of UID 1000.
Feb 9 21:03:07 instance-prod-2 systemd[1]: run-user-1000.mount: Succeeded.
Feb 9 21:03:07 instance-prod-2 systemd[1]: user-runtime-dir#1000.service: Succeeded.
Feb 9 21:03:07 instance-prod-2 systemd[1]: Stopped /run/user/1000 mount wrapper.
Feb 9 21:03:39 instance-prod-2 collectd[1307]: write_gcm: can not take infinite value
Feb 9 21:03:39 instance-prod-2 collectd[1307]: write_gcm: wg_typed_value_create_from_value_t_inline failed for swap/percent/value! Continuing.
Feb 9 21:03:39 instance-prod-2 collectd[1307]: write_gcm: can not take infinite value
Feb 9 21:03:39 instance-prod-2 collectd[1307]: write_gcm: wg_typed_value_create_from_value_t_inline failed for swap/percent/value! Continuing.
Feb 9 21:03:39 instance-prod-2 collectd[1307]: write_gcm: can not take infinite value
Feb 9 21:03:39 instance-prod-2 collectd[1307]: write_gcm: wg_typed_value_create_from_value_t_inline failed for swap/percent/value! Continuing.
Feb 9 21:04:01 instance-prod-2 systemd[1]: Started /run/user/1000 mount wrapper.
Feb 9 21:04:01 instance-prod-2 systemd[1]: Created slice User Slice of UID 1000.
Feb 9 21:04:01 instance-prod-2 systemd[1]: Starting User Manager for UID 1000...
Feb 9 21:04:01 instance-prod-2 systemd[1]: Started Session 19719 of user user_12345.
Feb 9 21:04:01 instance-prod-2 systemd[1]: Started Session 19720 of user user_12345.
Feb 9 21:04:01 instance-prod-2 systemd[1]: Started Session 19721 of user user_12345.
Feb 9 21:04:01 instance-prod-2 systemd[1]: Started Session 19722 of user user_12345.
Feb 9 21:04:01 instance-prod-2 systemd[285996]: Started Mark boot as successful after the user session has run 2 minutes.
Feb 9 21:04:01 instance-prod-2 systemd[285996]: Reached target Paths.
Feb 9 21:04:01 instance-prod-2 systemd[285996]: Starting D-Bus User Message Bus Socket.
Feb 9 21:04:01 instance-prod-2 systemd[285996]: Reached target Timers.
Feb 9 21:04:01 instance-prod-2 systemd[285996]: Listening on D-Bus User Message Bus Socket.
Feb 9 21:04:01 instance-prod-2 systemd[285996]: Reached target Sockets.
Feb 9 21:04:01 instance-prod-2 systemd[285996]: Reached target Basic System.
Feb 9 21:04:01 instance-prod-2 systemd[285996]: Reached target Default.
Feb 9 21:04:01 instance-prod-2 systemd[285996]: Startup finished in 40ms.
Feb 9 21:04:01 instance-prod-2 systemd[1]: Started User Manager for UID 1000.
Feb 9 21:04:06 instance-prod-2 systemd[1]: session-19722.scope: Succeeded.
Feb 9 21:04:07 instance-prod-2 systemd[1]: session-19720.scope: Succeeded.
Feb 9 21:04:09 instance-prod-2 systemd[1]: session-19719.scope: Succeeded.
Feb 9 21:04:10 instance-prod-2 systemd[1]: session-19721.scope: Succeeded.
Feb 9 21:04:10 instance-prod-2 systemd[1]: Stopping User Manager for UID 1000...
Feb 9 21:04:10 instance-prod-2 systemd[285996]: Stopped target Default.
Feb 9 21:04:10 instance-prod-2 systemd[285996]: Stopped target Basic System.
Feb 9 21:04:10 instance-prod-2 systemd[285996]: Stopped target Sockets.
Feb 9 21:04:10 instance-prod-2 systemd[285996]: Stopped target Paths.
Feb 9 21:04:10 instance-prod-2 systemd[285996]: dbus.socket: Succeeded.
Feb 9 21:04:10 instance-prod-2 systemd[285996]: Closed D-Bus User Message Bus Socket.
Feb 9 21:04:10 instance-prod-2 systemd[285996]: Stopped target Timers.
Feb 9 21:04:10 instance-prod-2 systemd[285996]: grub-boot-success.timer: Succeeded.
Feb 9 21:04:10 instance-prod-2 systemd[285996]: Stopped Mark boot as successful after the user session has run 2 minutes.
Feb 9 21:04:10 instance-prod-2 systemd[285996]: Reached target Shutdown.
Feb 9 21:04:10 instance-prod-2 systemd[285996]: Starting Exit the Session...
Feb 9 21:04:11 instance-prod-2 systemd[1]: user#1000.service: Succeeded.
Feb 9 21:04:11 instance-prod-2 systemd[1]: Stopped User Manager for UID 1000.
Feb 9 21:04:11 instance-prod-2 systemd[1]: Stopping /run/user/1000 mount wrapper...
Feb 9 21:04:11 instance-prod-2 systemd[1]: Removed slice User Slice of UID 1000.
Feb 9 21:04:11 instance-prod-2 systemd[1]: run-user-1000.mount: Succeeded.
Feb 9 21:04:11 instance-prod-2 systemd[1]: user-runtime-dir#1000.service: Succeeded.
Feb 9 21:04:11 instance-prod-2 systemd[1]: Stopped /run/user/1000 mount wrapper.
####################### FROZEN #####################
Feb 10 09:29:18 instance-prod-2 kernel: Command line: BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-4.18.0-240.10.1.el8_3.x86_64 root=UUID=0d7450f2-b70b-4208-bfe4-8>
Feb 10 09:29:18 instance-prod-2 kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Feb 10 09:29:18 instance-prod-2 kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Feb 10 09:29:18 instance-prod-2 kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Feb 10 09:29:18 instance-prod-2 kernel: x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
Feb 10 09:29:18 instance-prod-2 kernel: x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
Feb 10 09:29:18 instance-prod-2 kernel: BIOS-provided physical RAM map:

How to fix webmail not working in a VPS with Plesk

I have a VPS server running Ubunutu16 + Plesk.
Webmail Roundcube starts without issues.
I created one email account admin#mydomain.com
I can send only the mail from admin#mydomain.com to admin
Sending mail to the server and from the server to my gmail and other accounts are not working.
in the /var/log/maillog I see timeouts like below.
Jan 11 19:20:13 localhost dovecot: service=imap, user=admin#mydomain.de, ip=[127.0.0.1]. Logged out rcvd=50, sent=512
Jan 11 19:21:13 localhost dovecot: imap-login: Login: user=<admin#mydomain.de>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1909, TLS, session=<sh4nmTN/7q9/AAAB>
Jan 11 19:21:13 localhost dovecot: service=imap, user=admin#mydomain.de, ip=[127.0.0.1]. Logged out rcvd=50, sent=512
Jan 11 19:22:13 localhost dovecot: imap-login: Login: user=<admin#mydomain.de>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1914, TLS, session=<adS6nDN/8q9/AAAB>
Jan 11 19:22:13 localhost dovecot: service=imap, user=admin#mydomain.de, ip=[127.0.0.1]. Logged out rcvd=50, sent=512
Jan 11 19:23:13 localhost dovecot: imap-login: Login: user=<admin#mydomain.de>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1918, TLS, session=<+EtOoDN/+q9/AAAB>
Jan 11 19:23:13 localhost dovecot: service=imap, user=admin#mydomain.de, ip=[127.0.0.1]. Logged out rcvd=50, sent=512
Jan 11 19:24:13 localhost dovecot: imap-login: Login: user=<admin#mydomain.de>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1922, TLS, session=<ltLhozN/ArB/AAAB>
Jan 11 19:24:13 localhost dovecot: service=imap, user=admin#mydomain.de, ip=[127.0.0.1]. Logged out rcvd=50, sent=512
Jan 11 19:25:13 localhost dovecot: imap-login: Login: user=<admin#mydomain.de>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1931, TLS, session=<oWl1pzN/BrB/AAAB>
Jan 11 19:25:13 localhost dovecot: service=imap, user=admin#mydomain.de, ip=[127.0.0.1]. Logged out rcvd=50, sent=512
Jan 11 19:25:37 localhost postfix/qmgr[1235]: 22EA062BD2: from=<admin#mydomain.de>, size=613, nrcpt=1 (queue active)
Jan 11 19:25:37 localhost postfix/qmgr[1235]: 50E9362CEB: from=<admin#mydomain.de>, size=599, nrcpt=1 (queue active)
Jan 11 19:26:07 localhost postfix/smtp[1971]: connect to mx00.emig.gmx.net[212.227.15.9]:25: Connection timed out
Jan 11 19:26:07 localhost postfix/smtp[1972]: connect to mx00.emig.gmx.net[212.227.15.9]:25: Connection timed out
Jan 11 19:26:13 localhost dovecot: imap-login: Login: user=<admin#mydomain.de>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=2034, TLS, session=<OB8JqzN/HrB/AAAB>
Jan 11 19:26:13 localhost dovecot: service=imap, user=admin#mydomain.de, ip=[127.0.0.1]. Logged out rcvd=50, sent=512
root#localhost:/var/log# telnet alt4.gmail-smtp-in.l.google.com 25
Solved
After I have set MX record in DNS records error disappeared.

send mail as non root user

I am trying to send a mail with a non root user (also by tuleap application) but i have some trouble.
when we use a root user with command
echo “TR : This is a test of sending mail” | mail -s Test <mail>
it return this log and my email is sent
Mar 10 16:59:09 localhost sendmail[11969]: t2AGx9Up011969: from=root, size=258, class=0, nrcpts=1, msgid=<201503101659.t2AGx9Up011969#localhost.localdomain>, relay=root#localhost
Mar 10 16:59:09 localhost sendmail[11970]: t2AGx9Js011970: from=<root#localhost.localdomain>, size=521, class=0, nrcpts=1, msgid=<201503101659.t2AGx9Up011969#localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Mar 10 16:59:09 localhost sendmail[11969]: t2AGx9Up011969: to=<my mail>, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30258, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t2AGx9Js011970 Message accepted for delivery)
Mar 10 16:59:12 localhost sendmail[11972]: STARTTLS=client, relay=<my SMTP server>, version=TLSv1/SSLv3, verify=OK, cipher=DHE-RSA-AES256-GCM-SHA384, bits=256/256
Mar 10 16:59:15 localhost sendmail[11972]: t2AGx9Js011970: to=<my mail>, ctladdr=<root#localhost.localdomain> (0/0), delay=00:00:06, xdelay=00:00:06, mailer=relay, pri=120521, relay=<my SMTP server> [IP], dsn=2.0.0, stat=Sent (OK id=1YVNUv-002ihW-JJ)
but when we use an other use (like codendiadm as used by tuleap) with the same command, it return this log without sending mail
Mar 10 16:59:53 localhost sendmail[12024]: t2AGxrhg012024: from=codendiadm, size=258, class=0, nrcpts=1, msgid=<201503101659.t2AGxrhg012024#localhost.localdomain>, relay=codendiadm#localhost
Mar 10 16:59:53 localhost sendmail[12025]: t2AGxr16012025: from=<codendiadm#localhost.localdomain>, size=556, class=0, nrcpts=1, msgid=<201503101659.t2AGxrhg012024#localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Mar 10 16:59:53 localhost sendmail[12024]: t2AGxrhg012024: to=<my mail>, ctladdr=codendiadm (495/492), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30258, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t2AGxr16012025 Message accepted for delivery)
Mar 10 16:59:57 localhost sendmail[12027]: STARTTLS=client, relay=<my SMTP server>, version=TLSv1/SSLv3, verify=OK, cipher=DHE-RSA-AES256-GCM-SHA384, bits=256/256
Mar 10 17:00:00 localhost sendmail[12027]: t2AGxr16012025: to=<my mail>, ctladdr=<codendiadm#localhost.localdomain> (495/492), delay=00:00:07, xdelay=00:00:07, mailer=relay, pri=120556, relay=<my SMTP server> [IP], dsn=5.1.1, stat=User unknown
Mar 10 17:00:00 localhost sendmail[12027]: t2AGxr16012025: t2AH0016012027: DSN: User unknown
Try to remove sendmail and install postfix instead. And tell me if it works better this way. You'll find how to do it here.

Dovecot isn't delivering e-mails from localhost

I'm facing an issue with delivering e-mails.
I've successfully setup dovecot + postfix + mysql. The issue is that e-mails is not in the INBOX when I send e-mails from localhost (for example from php script). It works perfectly when I send e-mails from any other server. I have no idea what could cause this issue. Maillog seems to be OK. Where should I take a look?
Log for undelivered e-mail looks like this
Nov 9 22:31:31 user postfix/pickup[15929]: 474A5300E47: uid=5005 from=<webmaster#domain.com>
Nov 9 22:31:31 user postfix/cleanup[18511]: 474A5300E47: message-id=<20141109223131.474A5300E47#domain.com>
Nov 9 22:31:31 user postfix/qmgr[2582]: 474A5300E47: from=<webmaster#domain.com>, size=1198, nrcpt=1 (queue active)
Nov 9 22:31:35 user postfix/smtpd[18515]: connect from localhost[127.0.0.1]
Nov 9 22:31:35 user postfix/smtpd[18515]: 9A538300E48: client=localhost[127.0.0.1]
Nov 9 22:31:35 user postfix/cleanup[18511]: 9A538300E48: message-id=<20141109223131.474A5300E47#domain.com>
Nov 9 22:31:35 user postfix/smtpd[18515]: disconnect from localhost[127.0.0.1]
Nov 9 22:31:35 user postfix/qmgr[2582]: 9A538300E48: from=<webmaster#domain.com>, size=1595, nrcpt=1 (queue active)
Nov 9 22:31:35 user amavis[3458]: (03458-10) Passed CLEAN {RelayedInbound}, <webmaster#domain.com> -> <info#domain.com>, Message-ID: <20141109223131.474A5300E47#domain.com>, mail_id: 1S0boeHaaI2L, Hits: 1.115, size: 1196, queued_as: 9A538300E48, 4313 ms
Nov 9 22:31:35 user postfix/smtp[18512]: 474A5300E47: to=<info#domain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=4.4, delays=0.05/0.02/0.02/4.3, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 9A538300E48)
Nov 9 22:31:35 user postfix/qmgr[2582]: 474A5300E47: removed
Nov 9 22:31:35 user dovecot: lda(info#domain.com): sieve: msgid=<20141109223131.474A5300E47#domain.com>: stored mail into mailbox 'INBOX'
Nov 9 22:31:35 user postfix/pipe[18516]: 9A538300E48: to=<info#domain.com>, relay=dovecot, delay=0.1, delays=0.02/0.03/0/0.05, dsn=2.0.0, status=sent (delivered via dovecot service)
Nov 9 22:31:35 user postfix/qmgr[2582]: 9A538300E48: removed
Log for delivered e-mail
Nov 9 22:32:13 user postfix/smtpd[18542]: connect from mail-wi0-x236.google.com[2a00:1450:400c:c05::236]
Nov 9 22:32:13 user postfix/smtpd[18542]: 985EB300E47: client=mail-wi0-x236.google.com[2a00:1450:400c:c05::236]
Nov 9 22:32:13 user postfix/cleanup[18511]: 985EB300E47: message-id=<B840B0EE-45E6-4609-BD14-59EBF39449D0#gmail.com>
Nov 9 22:32:13 user postfix/qmgr[2582]: 985EB300E47: from=<example#gmail.com>, size=7916, nrcpt=1 (queue active)
Nov 9 22:32:13 user postfix/smtpd[18542]: disconnect from mail-wi0-x236.google.com[2a00:1450:400c:c05::236]
Nov 9 22:32:18 user postfix/smtpd[18515]: connect from localhost[127.0.0.1]
Nov 9 22:32:18 user postfix/smtpd[18515]: 3F751300E48: client=localhost[127.0.0.1]
Nov 9 22:32:18 user postfix/cleanup[18511]: 3F751300E48: message-id=<B840B0EE-45E6-4609-BD14-59EBF39449D0#gmail.com>
Nov 9 22:32:18 user postfix/qmgr[2582]: 3F751300E48: from=<example#gmail.com>, size=8407, nrcpt=1 (queue active)
Nov 9 22:32:18 user postfix/smtpd[18515]: disconnect from localhost[127.0.0.1]
Nov 9 22:32:18 user amavis[2072]: (02072-11) Passed CLEAN {RelayedInbound}, [2a00:1450:400c:c05::236]:65181 [86.149.90.56] <example#gmail.com> -> <info#domain.com>, Queue-ID: 985EB300E47, Message-ID: <B840B0EE-45E6-4609-BD14-59EBF39449D0#gmail.com>, mail_id: IXFd3XMT3ftY, Hits: -0.799, size: 7915, queued_as: 3F751300E48, dkim_sd=20120113:gmail.com, 4569 ms
Nov 9 22:32:18 user postfix/smtp[18512]: 985EB300E47: to=<info#domain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=4.7, delays=0.1/0/0.02/4.6, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 3F751300E48)
Nov 9 22:32:18 user postfix/qmgr[2582]: 985EB300E47: removed
Nov 9 22:32:18 user dovecot: lda(info#domain.com): sieve: msgid=<B840B0EE-45E6-4609-BD14-59EBF39449D0#gmail.com>: stored mail into mailbox 'INBOX'
Nov 9 22:32:18 user postfix/pipe[18516]: 3F751300E48: to=<info#domain.com>, relay=dovecot, delay=0.05, delays=0.01/0/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service)
Nov 9 22:32:18 user postfix/qmgr[2582]: 3F751300E48: removed
FIXED IT
Just in case somebody else would face this issue. Check your /etc/hosts file
if you have
39.29.192.294 domain.com
Of course with your public ip address & your domain.
It wouldn't deliver any e-mail sent from localhost to #domain.com. Remove this line & it should works ;)

Postfix - Mail not delivering except from root

When I try to send an email as root using the following command, the email delivers successfully:
echo "Test" | sendmail -r user#mydomain.com myemail#gmail.com
But when I send an email, using the same command, as a different user, it does not deliver the email even though it's successful in the logs.
Log as root:
Jun 16 11:28:53 mydomain postfix/pickup[2163]: 34AF541D1C: uid=0 from=<user#mydomain.com>
Jun 16 11:28:53 mydomain postfix/cleanup[3168]: 34AF541D1C: message-id=<20140616112853.34AF541D1C#mydomain.com>
Jun 16 11:28:53 mydomain postfix/qmgr[2164]: 34AF541D1C: from=<user#mydomain.com>, size=247, nrcpt=1 (queue active)
Jun 16 11:29:06 mydomain postfix/smtp[3170]: 34AF541D1C: to=<myemail#gmail.com>, relay=spmail-sms-gw.cloudmark.com[66.151.128.162]:25, delay=13, delays=0.03/0.01/7.2/6.2, dsn=2.0.0, status=sent (250 2.0.0 EzUt1o001190bAS01zV09C mail accepted for delivery)
Jun 16 11:29:06 mydomain postfix/qmgr[2164]: 34AF541D1C: removed
Log as another user:
Jun 16 11:29:53 mydomain postfix/pickup[2163]: 34AF541D1C: uid=1000 from=<user#mydomain.com>
Jun 16 11:29:53 mydomain postfix/cleanup[3168]: 34AF541D1C: message-id=<20140616112953.34AF541D1C#mydomain.com>
Jun 16 11:29:53 mydomain postfix/qmgr[2164]: 34AF541D1C: from=<user#mydomain.com>, size=247, nrcpt=1 (queue active)
Jun 16 11:30:06 mydomain postfix/smtp[3170]: 34AF541D1C: to=<myemail#gmail.com>, relay=spmail-sms-gw.cloudmark.com[66.151.128.162]:25, delay=13, delays=0.03/0.01/7.2/6.2, dsn=2.0.0, status=sent (250 2.0.0 EzUt1o0014340bAS01zV09C mail accepted for delivery)
Jun 16 11:30:06 mydomain postfix/qmgr[2164]: 34AF541D1C: removed