Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Add on: OK, so since in main.cf it is written as "/etc/postfix/sasl_passwd",
i "sudo vi /etc/postfix/sasl_passwd" first,
after that, i add inside /etc/postfix/sasl_passwd with this:
Code:
[smtp.gmail.com]:587 xanios@gmail.com:p@55w0rd
Is that what you mean? Hope i didn't misunderstand what you're saying
That's also a way to do it. Don't forget to re-run the postmap command on it and restart postfix. Then test again.
I am still confused as to what are you trying to achieve? Are you trying to send mail to your gmail account or trying to use gmail SMTP server as relay to send mails. To send mails externally on internet requires a valid MX record for your domain that other domain SMTP servers can verify.
Here you are storing hash password for your gmail account and I do not understand why do you need it. Are you using gmail SMTP as a relay to send emails?
Your connection has been refused and as I say. I think this issue is caused because there is no MX record to your domain that points to your server. This will make gmail SMTP server reject the connections for it can not verify your server using reverse lookups. I suggest you use gmail SMTP server to relay your emails to external internet SMTP servers.
I am still confused as to what are you trying to achieve? Are you trying to send mail to your gmail account or trying to use gmail SMTP server as relay to send mails. To send mails externally on internet requires a valid MX record for your domain that other domain SMTP servers can verify.
Here you are storing hash password for your gmail account and I do not understand why do you need it. Are you using gmail SMTP as a relay to send emails?
Hi,
Hmm both sounds almost the same to me? I want to send mail to my gmail account, but before that i do have to use gmail SMTP server as a relay isn't it? So yesterday i created the CA Certificate to get postfix to work with gmail.
One step closer to success! Looks from the log that you're connecting to the GMail smtp server. Bad new is that your connection is refused.
From what I see in your post at 11:24 is that the owner/group is wrong for the sasl_passwd.db file. Did you run the postmap command on the sasl_passwd file with sudo? Like this?:
Code:
sudo postmap /etc/postfix/sasl_passwd
If not, run it, check the permissions of the file after that, restart postfix and send a mail. Just like before post last 20 or so lines from the log.
From what I see in your post at 11:24 is that the owner/group is wrong for the sasl_passwd.db file.
Hmm you mean this line:
Code:
Mail Delivery Status Report will be mailed to <layleng>.
Hmm, actually the name of the user is that and not xanios. I changed to xanios when i posted my output here is to protect my identity. Well, hahahaa XD
And ya, i did run the postmap command on the sasl_passwd
Mail Delivery Status Report will be mailed to <layleng>.
Hmm, actually the name of the user is that and not xanios. I changed to xanios when i posted my output here is to protect my identity. Well, hahahaa XD
And ya, i did run the postmap command on the sasl_passwd
where it shows that xanios:xanios is owner of the sasl_passwd.db file. But now looking for the second time I noticed you were in your home directory and moved the file later on.
Can you post output of the ls command on the postfix dir?
Code:
sudo ls -al /etc/postfix/
And it's good that you change your personal data like IP, logon, etc...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.