smtp client setup on ubuntu desktop to use Gmail smtp server for corporate domainPostfix — mail forwarding loopmail loops back to myself | postfixUnable to send mail outside network via PostFixWhy is Postfix trying to connect to other machines SMTP port 25?Postfix: Recipient address rejected: Invalid HELO/EHLOPostfix holds email from domainPostfix can't send mails to google server -> FROM GOOGLE SERVERContact form from ubuntu to Zoho email addressSetting up mailserver with relay hostpostfix: Cannot assign requested address

Why is this python script running in background consuming 100 % CPU?

Parse a C++14 integer literal

Salesforce bug enabled "Modify All"

Why "strap-on" boosters, and how do other people say it?

Was murdering a slave illegal in American slavery, and if so, what punishments were given for it?

Are there historical examples of audiences drawn to a work that was "so bad it's good"?

How to add a low pass filter to this non-inverting amplifier circuit?

Why use nominative in Coniugatio periphrastica passiva?

How to use Screen Sharing if I don't know the remote Mac's IP address

What is this dime sized black bug with white on the segments near Loveland Colorodao?

List of lists elementwise greater/smaller than

Managing heat dissipation in a magic wand

How can sister protect herself from impulse purchases with a credit card?

How to tease a romance without a cat and mouse chase?

Schwa-less Polysyllabic German Noun Stems of Germanic Origin

How should I mix small caps with digits or symbols?

Can dirty bird feeders make birds sick?

Circuit construction for execution of conditional statements using least significant bit

Way of refund if scammed?

How can I use 400 ASA film in a Leica IIIf, which does not have options higher than 100?

Removing Doubles Destroy Topology

What is metrics.roc_curve and metrics.auc measuring when I'm comparing binary data with probability estimates?

Keeping the dodos out of the field

400–430 degrees Celsius heated bath



smtp client setup on ubuntu desktop to use Gmail smtp server for corporate domain


Postfix — mail forwarding loopmail loops back to myself | postfixUnable to send mail outside network via PostFixWhy is Postfix trying to connect to other machines SMTP port 25?Postfix: Recipient address rejected: Invalid HELO/EHLOPostfix holds email from domainPostfix can't send mails to google server -> FROM GOOGLE SERVERContact form from ubuntu to Zoho email addressSetting up mailserver with relay hostpostfix: Cannot assign requested address






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








2















How to configure SMTP client (Ubuntu desktop) to use Gmail SMTP server to send email from my desktop using postfix.



This is how we login to company provided email. we login to gmail.com using myemail@companydomain.com and password. So I understanding that our email server is with gmail.



I have configured postfix to send email using smtp.gmail.server to send email from local computer. I followed https://kifarunix.com/configure-postfix-to-use-gmail-smtp-on-ubuntu-18-04/ to setup postfix. Then trying to send email via commandline using my gmail (mygmail@gmail.com) account and company account (myemail@companydomain.com)



echo "mail test"|mailx -s "Subject test" myemail@gmail.com
echo "mail test"|mailx -s "Subject test" myemail@compnaydomain.com


The postfix configuration using "dpkg-reconfigure postfix"



smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
compatibility_level = 2
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = ThinkPad-E470
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = ThinkPad-E470, gmail.com, ThinkPad-E470, localhost.localdomain, localhost, companydomain.com
relayhost = [smtp.gmail.com]:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
smtpd_tls_auth_only = no
smtpd_tls_key_file = /etc/ssl-certs/mail.companydomain.com.key
smtpd_tls_cert_file = /etc/ssl-certs/mail.companydomain.com.crt
smtpd_tls_CAfile = /etc/ssl-certs/cacert.pem
tls_random_source = dev:/dev/urandom


In the /var/log/mail/log, seeing the below non delivery notification when email to myemail@gmail.com.



May 7 13:41:58 ThinkPad-E470 postfix/pickup[6321]: 5962528214FB: uid=0 from=<root@ThinkPad-E470>
May 7 13:41:58 ThinkPad-E470 postfix/cleanup[6695]: 5962528214FB: message-id=<20190507174158.5962528214FB@ThinkPad-E470>
May 7 13:41:58 ThinkPad-E470 postfix/qmgr[6322]: 5962528214FB: from=<root@ThinkPad-E470>, size=375, nrcpt=1 (queue active)
May 7 13:41:58 ThinkPad-E470 postfix/local[6697]: 5962528214FB: to=<myemail@companydomain.com>, relay=local, delay=0.38, delays=0.29/0.01/0/0.08, dsn=5.1.1, status=bounced (unknown user: "myemail")
May 7 13:41:58 ThinkPad-E470 postfix/cleanup[6695]: A840828214FF: message-id=<20190507174158.A840828214FF@ThinkPad-E470>
May 7 13:41:58 ThinkPad-E470 postfix/bounce[6698]: 5962528214FB: sender non-delivery notification: A840828214FF
May 7 13:41:58 ThinkPad-E470 postfix/qmgr[6322]: A840828214FF: from=<>, size=2355, nrcpt=1 (queue active)
May 7 13:41:58 ThinkPad-E470 postfix/local[6697]: A840828214FF: to=<root@ThinkPad-E470>, relay=local, delay=0.26, delays=0.21/0/0/0.05, dsn=2.0.0, status=sent (delivered to mailbox)
May 7 13:41:58 ThinkPad-E470 postfix/qmgr[6322]: 5962528214FB: removed
May 7 13:41:59 ThinkPad-E470 postfix/qmgr[6322]: A840828214FF: removed


In the /var/log/mail/log, seeing the below non delivery notification when email to myemail@companydomain.com.



May 7 14:01:07 ThinkPad-E470 postfix/pickup[6321]: 798E828214FB: uid=0 from=<root@ThinkPad-E470>
May 7 14:01:07 ThinkPad-E470 postfix/cleanup[6873]: 798E828214FB: message-id=<20190507180107.798E828214FB@ThinkPad-E470>
May 7 14:01:07 ThinkPad-E470 postfix/qmgr[6322]: 798E828214FB: from=<root@ThinkPad-E470>, size=375, nrcpt=1 (queue active)
May 7 14:01:07 ThinkPad-E470 postfix/local[6875]: 798E828214FB: to=<myemail@companydomain.com>, relay=local, delay=0.33, delays=0.24/0/0/0.09, dsn=5.1.1, status=bounced (unknown user: "myemail")
May 7 14:01:07 ThinkPad-E470 postfix/cleanup[6873]: BDB3028214FF: message-id=<20190507180107.BDB3028214FF@ThinkPad-E470>
May 7 14:01:07 ThinkPad-E470 postfix/bounce[6876]: 798E828214FB: sender non-delivery notification: BDB3028214FF
May 7 14:01:07 ThinkPad-E470 postfix/qmgr[6322]: BDB3028214FF: from=<>, size=2355, nrcpt=1 (queue active)
May 7 14:01:07 ThinkPad-E470 postfix/local[6875]: BDB3028214FF: to=<root@ThinkPad-E470>, relay=local, delay=0.23, delays=0.17/0/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)
May 7 14:01:08 ThinkPad-E470 postfix/qmgr[6322]: 798E828214FB: removed
May 7 14:01:08 ThinkPad-E470 postfix/qmgr[6322]: BDB3028214FF: removed


I do not know how email and proxy and relay servers work. I could not understand how my company email server is configured and to setup postfix to use gmail smtp server from my desktop machine.



The self-signed ssl key and certificate and CA certs are created for postfix locally for domain companydomain.com.



How to configure postfix to use my smtp server from ubuntu client?










share|improve this question






















  • myemail@gmail.com is not the same as mygmail@gmail.com

    – Edo Akse
    May 8 at 14:09











  • Edo Akse@ I tried to use two of my email accounts GMAIL.COM (personal) and COMPANYDOMAIN.COM (corporate).

    – arunp
    May 9 at 19:11

















2















How to configure SMTP client (Ubuntu desktop) to use Gmail SMTP server to send email from my desktop using postfix.



This is how we login to company provided email. we login to gmail.com using myemail@companydomain.com and password. So I understanding that our email server is with gmail.



I have configured postfix to send email using smtp.gmail.server to send email from local computer. I followed https://kifarunix.com/configure-postfix-to-use-gmail-smtp-on-ubuntu-18-04/ to setup postfix. Then trying to send email via commandline using my gmail (mygmail@gmail.com) account and company account (myemail@companydomain.com)



echo "mail test"|mailx -s "Subject test" myemail@gmail.com
echo "mail test"|mailx -s "Subject test" myemail@compnaydomain.com


The postfix configuration using "dpkg-reconfigure postfix"



smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
compatibility_level = 2
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = ThinkPad-E470
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = ThinkPad-E470, gmail.com, ThinkPad-E470, localhost.localdomain, localhost, companydomain.com
relayhost = [smtp.gmail.com]:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
smtpd_tls_auth_only = no
smtpd_tls_key_file = /etc/ssl-certs/mail.companydomain.com.key
smtpd_tls_cert_file = /etc/ssl-certs/mail.companydomain.com.crt
smtpd_tls_CAfile = /etc/ssl-certs/cacert.pem
tls_random_source = dev:/dev/urandom


In the /var/log/mail/log, seeing the below non delivery notification when email to myemail@gmail.com.



May 7 13:41:58 ThinkPad-E470 postfix/pickup[6321]: 5962528214FB: uid=0 from=<root@ThinkPad-E470>
May 7 13:41:58 ThinkPad-E470 postfix/cleanup[6695]: 5962528214FB: message-id=<20190507174158.5962528214FB@ThinkPad-E470>
May 7 13:41:58 ThinkPad-E470 postfix/qmgr[6322]: 5962528214FB: from=<root@ThinkPad-E470>, size=375, nrcpt=1 (queue active)
May 7 13:41:58 ThinkPad-E470 postfix/local[6697]: 5962528214FB: to=<myemail@companydomain.com>, relay=local, delay=0.38, delays=0.29/0.01/0/0.08, dsn=5.1.1, status=bounced (unknown user: "myemail")
May 7 13:41:58 ThinkPad-E470 postfix/cleanup[6695]: A840828214FF: message-id=<20190507174158.A840828214FF@ThinkPad-E470>
May 7 13:41:58 ThinkPad-E470 postfix/bounce[6698]: 5962528214FB: sender non-delivery notification: A840828214FF
May 7 13:41:58 ThinkPad-E470 postfix/qmgr[6322]: A840828214FF: from=<>, size=2355, nrcpt=1 (queue active)
May 7 13:41:58 ThinkPad-E470 postfix/local[6697]: A840828214FF: to=<root@ThinkPad-E470>, relay=local, delay=0.26, delays=0.21/0/0/0.05, dsn=2.0.0, status=sent (delivered to mailbox)
May 7 13:41:58 ThinkPad-E470 postfix/qmgr[6322]: 5962528214FB: removed
May 7 13:41:59 ThinkPad-E470 postfix/qmgr[6322]: A840828214FF: removed


In the /var/log/mail/log, seeing the below non delivery notification when email to myemail@companydomain.com.



May 7 14:01:07 ThinkPad-E470 postfix/pickup[6321]: 798E828214FB: uid=0 from=<root@ThinkPad-E470>
May 7 14:01:07 ThinkPad-E470 postfix/cleanup[6873]: 798E828214FB: message-id=<20190507180107.798E828214FB@ThinkPad-E470>
May 7 14:01:07 ThinkPad-E470 postfix/qmgr[6322]: 798E828214FB: from=<root@ThinkPad-E470>, size=375, nrcpt=1 (queue active)
May 7 14:01:07 ThinkPad-E470 postfix/local[6875]: 798E828214FB: to=<myemail@companydomain.com>, relay=local, delay=0.33, delays=0.24/0/0/0.09, dsn=5.1.1, status=bounced (unknown user: "myemail")
May 7 14:01:07 ThinkPad-E470 postfix/cleanup[6873]: BDB3028214FF: message-id=<20190507180107.BDB3028214FF@ThinkPad-E470>
May 7 14:01:07 ThinkPad-E470 postfix/bounce[6876]: 798E828214FB: sender non-delivery notification: BDB3028214FF
May 7 14:01:07 ThinkPad-E470 postfix/qmgr[6322]: BDB3028214FF: from=<>, size=2355, nrcpt=1 (queue active)
May 7 14:01:07 ThinkPad-E470 postfix/local[6875]: BDB3028214FF: to=<root@ThinkPad-E470>, relay=local, delay=0.23, delays=0.17/0/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)
May 7 14:01:08 ThinkPad-E470 postfix/qmgr[6322]: 798E828214FB: removed
May 7 14:01:08 ThinkPad-E470 postfix/qmgr[6322]: BDB3028214FF: removed


I do not know how email and proxy and relay servers work. I could not understand how my company email server is configured and to setup postfix to use gmail smtp server from my desktop machine.



The self-signed ssl key and certificate and CA certs are created for postfix locally for domain companydomain.com.



How to configure postfix to use my smtp server from ubuntu client?










share|improve this question






















  • myemail@gmail.com is not the same as mygmail@gmail.com

    – Edo Akse
    May 8 at 14:09











  • Edo Akse@ I tried to use two of my email accounts GMAIL.COM (personal) and COMPANYDOMAIN.COM (corporate).

    – arunp
    May 9 at 19:11













2












2








2








How to configure SMTP client (Ubuntu desktop) to use Gmail SMTP server to send email from my desktop using postfix.



This is how we login to company provided email. we login to gmail.com using myemail@companydomain.com and password. So I understanding that our email server is with gmail.



I have configured postfix to send email using smtp.gmail.server to send email from local computer. I followed https://kifarunix.com/configure-postfix-to-use-gmail-smtp-on-ubuntu-18-04/ to setup postfix. Then trying to send email via commandline using my gmail (mygmail@gmail.com) account and company account (myemail@companydomain.com)



echo "mail test"|mailx -s "Subject test" myemail@gmail.com
echo "mail test"|mailx -s "Subject test" myemail@compnaydomain.com


The postfix configuration using "dpkg-reconfigure postfix"



smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
compatibility_level = 2
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = ThinkPad-E470
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = ThinkPad-E470, gmail.com, ThinkPad-E470, localhost.localdomain, localhost, companydomain.com
relayhost = [smtp.gmail.com]:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
smtpd_tls_auth_only = no
smtpd_tls_key_file = /etc/ssl-certs/mail.companydomain.com.key
smtpd_tls_cert_file = /etc/ssl-certs/mail.companydomain.com.crt
smtpd_tls_CAfile = /etc/ssl-certs/cacert.pem
tls_random_source = dev:/dev/urandom


In the /var/log/mail/log, seeing the below non delivery notification when email to myemail@gmail.com.



May 7 13:41:58 ThinkPad-E470 postfix/pickup[6321]: 5962528214FB: uid=0 from=<root@ThinkPad-E470>
May 7 13:41:58 ThinkPad-E470 postfix/cleanup[6695]: 5962528214FB: message-id=<20190507174158.5962528214FB@ThinkPad-E470>
May 7 13:41:58 ThinkPad-E470 postfix/qmgr[6322]: 5962528214FB: from=<root@ThinkPad-E470>, size=375, nrcpt=1 (queue active)
May 7 13:41:58 ThinkPad-E470 postfix/local[6697]: 5962528214FB: to=<myemail@companydomain.com>, relay=local, delay=0.38, delays=0.29/0.01/0/0.08, dsn=5.1.1, status=bounced (unknown user: "myemail")
May 7 13:41:58 ThinkPad-E470 postfix/cleanup[6695]: A840828214FF: message-id=<20190507174158.A840828214FF@ThinkPad-E470>
May 7 13:41:58 ThinkPad-E470 postfix/bounce[6698]: 5962528214FB: sender non-delivery notification: A840828214FF
May 7 13:41:58 ThinkPad-E470 postfix/qmgr[6322]: A840828214FF: from=<>, size=2355, nrcpt=1 (queue active)
May 7 13:41:58 ThinkPad-E470 postfix/local[6697]: A840828214FF: to=<root@ThinkPad-E470>, relay=local, delay=0.26, delays=0.21/0/0/0.05, dsn=2.0.0, status=sent (delivered to mailbox)
May 7 13:41:58 ThinkPad-E470 postfix/qmgr[6322]: 5962528214FB: removed
May 7 13:41:59 ThinkPad-E470 postfix/qmgr[6322]: A840828214FF: removed


In the /var/log/mail/log, seeing the below non delivery notification when email to myemail@companydomain.com.



May 7 14:01:07 ThinkPad-E470 postfix/pickup[6321]: 798E828214FB: uid=0 from=<root@ThinkPad-E470>
May 7 14:01:07 ThinkPad-E470 postfix/cleanup[6873]: 798E828214FB: message-id=<20190507180107.798E828214FB@ThinkPad-E470>
May 7 14:01:07 ThinkPad-E470 postfix/qmgr[6322]: 798E828214FB: from=<root@ThinkPad-E470>, size=375, nrcpt=1 (queue active)
May 7 14:01:07 ThinkPad-E470 postfix/local[6875]: 798E828214FB: to=<myemail@companydomain.com>, relay=local, delay=0.33, delays=0.24/0/0/0.09, dsn=5.1.1, status=bounced (unknown user: "myemail")
May 7 14:01:07 ThinkPad-E470 postfix/cleanup[6873]: BDB3028214FF: message-id=<20190507180107.BDB3028214FF@ThinkPad-E470>
May 7 14:01:07 ThinkPad-E470 postfix/bounce[6876]: 798E828214FB: sender non-delivery notification: BDB3028214FF
May 7 14:01:07 ThinkPad-E470 postfix/qmgr[6322]: BDB3028214FF: from=<>, size=2355, nrcpt=1 (queue active)
May 7 14:01:07 ThinkPad-E470 postfix/local[6875]: BDB3028214FF: to=<root@ThinkPad-E470>, relay=local, delay=0.23, delays=0.17/0/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)
May 7 14:01:08 ThinkPad-E470 postfix/qmgr[6322]: 798E828214FB: removed
May 7 14:01:08 ThinkPad-E470 postfix/qmgr[6322]: BDB3028214FF: removed


I do not know how email and proxy and relay servers work. I could not understand how my company email server is configured and to setup postfix to use gmail smtp server from my desktop machine.



The self-signed ssl key and certificate and CA certs are created for postfix locally for domain companydomain.com.



How to configure postfix to use my smtp server from ubuntu client?










share|improve this question














How to configure SMTP client (Ubuntu desktop) to use Gmail SMTP server to send email from my desktop using postfix.



This is how we login to company provided email. we login to gmail.com using myemail@companydomain.com and password. So I understanding that our email server is with gmail.



I have configured postfix to send email using smtp.gmail.server to send email from local computer. I followed https://kifarunix.com/configure-postfix-to-use-gmail-smtp-on-ubuntu-18-04/ to setup postfix. Then trying to send email via commandline using my gmail (mygmail@gmail.com) account and company account (myemail@companydomain.com)



echo "mail test"|mailx -s "Subject test" myemail@gmail.com
echo "mail test"|mailx -s "Subject test" myemail@compnaydomain.com


The postfix configuration using "dpkg-reconfigure postfix"



smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
compatibility_level = 2
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = ThinkPad-E470
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = ThinkPad-E470, gmail.com, ThinkPad-E470, localhost.localdomain, localhost, companydomain.com
relayhost = [smtp.gmail.com]:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
smtpd_tls_auth_only = no
smtpd_tls_key_file = /etc/ssl-certs/mail.companydomain.com.key
smtpd_tls_cert_file = /etc/ssl-certs/mail.companydomain.com.crt
smtpd_tls_CAfile = /etc/ssl-certs/cacert.pem
tls_random_source = dev:/dev/urandom


In the /var/log/mail/log, seeing the below non delivery notification when email to myemail@gmail.com.



May 7 13:41:58 ThinkPad-E470 postfix/pickup[6321]: 5962528214FB: uid=0 from=<root@ThinkPad-E470>
May 7 13:41:58 ThinkPad-E470 postfix/cleanup[6695]: 5962528214FB: message-id=<20190507174158.5962528214FB@ThinkPad-E470>
May 7 13:41:58 ThinkPad-E470 postfix/qmgr[6322]: 5962528214FB: from=<root@ThinkPad-E470>, size=375, nrcpt=1 (queue active)
May 7 13:41:58 ThinkPad-E470 postfix/local[6697]: 5962528214FB: to=<myemail@companydomain.com>, relay=local, delay=0.38, delays=0.29/0.01/0/0.08, dsn=5.1.1, status=bounced (unknown user: "myemail")
May 7 13:41:58 ThinkPad-E470 postfix/cleanup[6695]: A840828214FF: message-id=<20190507174158.A840828214FF@ThinkPad-E470>
May 7 13:41:58 ThinkPad-E470 postfix/bounce[6698]: 5962528214FB: sender non-delivery notification: A840828214FF
May 7 13:41:58 ThinkPad-E470 postfix/qmgr[6322]: A840828214FF: from=<>, size=2355, nrcpt=1 (queue active)
May 7 13:41:58 ThinkPad-E470 postfix/local[6697]: A840828214FF: to=<root@ThinkPad-E470>, relay=local, delay=0.26, delays=0.21/0/0/0.05, dsn=2.0.0, status=sent (delivered to mailbox)
May 7 13:41:58 ThinkPad-E470 postfix/qmgr[6322]: 5962528214FB: removed
May 7 13:41:59 ThinkPad-E470 postfix/qmgr[6322]: A840828214FF: removed


In the /var/log/mail/log, seeing the below non delivery notification when email to myemail@companydomain.com.



May 7 14:01:07 ThinkPad-E470 postfix/pickup[6321]: 798E828214FB: uid=0 from=<root@ThinkPad-E470>
May 7 14:01:07 ThinkPad-E470 postfix/cleanup[6873]: 798E828214FB: message-id=<20190507180107.798E828214FB@ThinkPad-E470>
May 7 14:01:07 ThinkPad-E470 postfix/qmgr[6322]: 798E828214FB: from=<root@ThinkPad-E470>, size=375, nrcpt=1 (queue active)
May 7 14:01:07 ThinkPad-E470 postfix/local[6875]: 798E828214FB: to=<myemail@companydomain.com>, relay=local, delay=0.33, delays=0.24/0/0/0.09, dsn=5.1.1, status=bounced (unknown user: "myemail")
May 7 14:01:07 ThinkPad-E470 postfix/cleanup[6873]: BDB3028214FF: message-id=<20190507180107.BDB3028214FF@ThinkPad-E470>
May 7 14:01:07 ThinkPad-E470 postfix/bounce[6876]: 798E828214FB: sender non-delivery notification: BDB3028214FF
May 7 14:01:07 ThinkPad-E470 postfix/qmgr[6322]: BDB3028214FF: from=<>, size=2355, nrcpt=1 (queue active)
May 7 14:01:07 ThinkPad-E470 postfix/local[6875]: BDB3028214FF: to=<root@ThinkPad-E470>, relay=local, delay=0.23, delays=0.17/0/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)
May 7 14:01:08 ThinkPad-E470 postfix/qmgr[6322]: 798E828214FB: removed
May 7 14:01:08 ThinkPad-E470 postfix/qmgr[6322]: BDB3028214FF: removed


I do not know how email and proxy and relay servers work. I could not understand how my company email server is configured and to setup postfix to use gmail smtp server from my desktop machine.



The self-signed ssl key and certificate and CA certs are created for postfix locally for domain companydomain.com.



How to configure postfix to use my smtp server from ubuntu client?







ubuntu postfix smtp gmail






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 7 at 18:18









arunparunp

133




133












  • myemail@gmail.com is not the same as mygmail@gmail.com

    – Edo Akse
    May 8 at 14:09











  • Edo Akse@ I tried to use two of my email accounts GMAIL.COM (personal) and COMPANYDOMAIN.COM (corporate).

    – arunp
    May 9 at 19:11

















  • myemail@gmail.com is not the same as mygmail@gmail.com

    – Edo Akse
    May 8 at 14:09











  • Edo Akse@ I tried to use two of my email accounts GMAIL.COM (personal) and COMPANYDOMAIN.COM (corporate).

    – arunp
    May 9 at 19:11
















myemail@gmail.com is not the same as mygmail@gmail.com

– Edo Akse
May 8 at 14:09





myemail@gmail.com is not the same as mygmail@gmail.com

– Edo Akse
May 8 at 14:09













Edo Akse@ I tried to use two of my email accounts GMAIL.COM (personal) and COMPANYDOMAIN.COM (corporate).

– arunp
May 9 at 19:11





Edo Akse@ I tried to use two of my email accounts GMAIL.COM (personal) and COMPANYDOMAIN.COM (corporate).

– arunp
May 9 at 19:11










1 Answer
1






active

oldest

votes


















0














I believe the problem is the presence of gmail.com and companydomain.com in mydestination.



In the mailx command the last argument is the recipient address. As those domains are listed in mydestination what happens is that you're sending the mails to your local server, which fails because those users don't exist locally.






share|improve this answer























  • It could be the case, because it worked when send to different email with different domain.

    – arunp
    May 9 at 19:13











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f966239%2fsmtp-client-setup-on-ubuntu-desktop-to-use-gmail-smtp-server-for-corporate-domai%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














I believe the problem is the presence of gmail.com and companydomain.com in mydestination.



In the mailx command the last argument is the recipient address. As those domains are listed in mydestination what happens is that you're sending the mails to your local server, which fails because those users don't exist locally.






share|improve this answer























  • It could be the case, because it worked when send to different email with different domain.

    – arunp
    May 9 at 19:13















0














I believe the problem is the presence of gmail.com and companydomain.com in mydestination.



In the mailx command the last argument is the recipient address. As those domains are listed in mydestination what happens is that you're sending the mails to your local server, which fails because those users don't exist locally.






share|improve this answer























  • It could be the case, because it worked when send to different email with different domain.

    – arunp
    May 9 at 19:13













0












0








0







I believe the problem is the presence of gmail.com and companydomain.com in mydestination.



In the mailx command the last argument is the recipient address. As those domains are listed in mydestination what happens is that you're sending the mails to your local server, which fails because those users don't exist locally.






share|improve this answer













I believe the problem is the presence of gmail.com and companydomain.com in mydestination.



In the mailx command the last argument is the recipient address. As those domains are listed in mydestination what happens is that you're sending the mails to your local server, which fails because those users don't exist locally.







share|improve this answer












share|improve this answer



share|improve this answer










answered May 9 at 11:07









BangaioBangaio

312




312












  • It could be the case, because it worked when send to different email with different domain.

    – arunp
    May 9 at 19:13

















  • It could be the case, because it worked when send to different email with different domain.

    – arunp
    May 9 at 19:13
















It could be the case, because it worked when send to different email with different domain.

– arunp
May 9 at 19:13





It could be the case, because it worked when send to different email with different domain.

– arunp
May 9 at 19:13

















draft saved

draft discarded
















































Thanks for contributing an answer to Server Fault!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f966239%2fsmtp-client-setup-on-ubuntu-desktop-to-use-gmail-smtp-server-for-corporate-domai%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020