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;
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
add a comment |
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
myemail@gmail.com
is not the same asmygmail@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
add a comment |
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
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
ubuntu postfix smtp gmail
asked May 7 at 18:18
arunparunp
133
133
myemail@gmail.com
is not the same asmygmail@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
add a comment |
myemail@gmail.com
is not the same asmygmail@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
add a comment |
1 Answer
1
active
oldest
votes
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.
It could be the case, because it worked when send to different email with different domain.
– arunp
May 9 at 19:13
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
It could be the case, because it worked when send to different email with different domain.
– arunp
May 9 at 19:13
add a comment |
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.
It could be the case, because it worked when send to different email with different domain.
– arunp
May 9 at 19:13
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
myemail@gmail.com
is not the same asmygmail@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