Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I have been using Postfix for a while now to forward mail from my own domains to gmail accounts.
I can't figure out why if I send an email from my gmail account to my @mydomain account it doesn't come back to my gmail account.
Also I have some groups set up, and if a user sends mail to the group, and they are in that group, the message goes out to everyone in the group but them.
I looked all through the main.cf file and can't find a related setting.
The answer doesn't lie in the config file, but in the log files. Maybe there something in the config but you have to check the log files first to learn the kind of error you are getting and why you can't deliver mail to those gmail accounts.
Have you checked the log files at the moment you send an e-mail to your gmail account?
Here is everything after the key exchange. I'm not sure if this is correct or not. I see the IPv6 failure but that shouldn't matter should it? If I send it from another gmail account (one that isn't configured to receive email for my domain) it woeks fine and the logs look virtually identical. I even get the same IPv6 "network is unreachable" log message.
May 5 06:51:44 mail postfix/cleanup[6191]: C84C812A00FF: message-id=<CAPkW28rr+cQzeGYtdErVvw=hzx2UuFPLfR2Xs0RHjJ3g-0F3Bg@mail.gmail.com>
May 5 06:51:44 mail postfix/qmgr[1863]: C84C812A00FF: from=<fxxxxx@gmail.com>, size=1785, nrcpt=1 (queue active)
May 5 06:51:44 mail postfix/smtp[6192]: connect to gmail-smtp-in.l.google.com[2607:f8b0:4002:c02::1a]:25: Network is unreachable
May 5 06:51:44 mail postfix/smtp[6192]: C84C812A00FF: to=<fxxxxx@gmail.com>, orig_to=<fxx@xxxxxxx.org>, relay=gmail-smtp-in.l.google.com[74.125.130.27]:25
, delay=1.2, delays=0.51/0/0.24/0.49, dsn=2.0.0, status=sent (250 2.0.0 OK 1367737716 d68si2686535yhe.40 - gsmtp)
May 5 06:51:44 mail postfix/qmgr[1863]: C84C812A00FF: removed
Also in regards to the logs. One thing that I find confusing I have phplist mass mailing server installed on a separate web server and it is configured to send mail out through my mail server ( the same one I am having the other issue with ) I find it strange that when I send out an email blast I'm not seeing anything in the logs at all. I don't see outgoing mail in the /var/log/maillog. But, the messages get delivered. I checked my phplist config and it is configured not to use the internal PHPMAILER class. So I am suspecting that outgoing mail isn't being logged at all by default.
# If you want to use the PHPMailer class from phpmailer.sourceforge.net, set the following
# to 1. If you tend to send out html emails, it is recommended to do so.
define("PHPMAILER",0);
# To use a SMTP please give your server hostname here, leave it blank to use the standard
# PHP mail() command.
define("PHPMAILERHOST",'mail.xxxxxxxxxxx.net');
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.