Here is the story, I would like to use POSTFIX relayhost config to send mails to gmail. I use 2-step Authentication and change and double check password and username. everything looks fine in sasl_passwd  &gt;postmap -q smtp.gmail.com:587 /etc/postfix/sasl_passwd Jonh:adfasdfasdfixvl   I am really tired of looking web but find nothing  ANY IDEA HOW TO RESOLVE THE ISSUE ?!  Here is my config main.cf :     postconf -n       alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id &amp; sleep 5 html_directory = no inet_protocols = ipv4 mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost mydomain = local.domain myhostname = host.local.domain myorigin = $myhostname newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES relayhost = smtp.gmail.com:587 sample_directory = /usr/share/doc/postfix-2.10.1/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_type = cyrus smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt smtp_use_tls = yes smtpd_sasl_path = smtpd unknown_local_recipient_reject_code = 550   And here is the log why it failed :  Jan 12 00:19:53 gamma postfix/pickup[11859]: A1EFD800DB: uid=0 from=&lt;root&gt; Jan 12 00:19:53 gamma postfix/cleanup[11886]: A1EFD800DB: message-id=&lt;20150112001953.A1EFD800DB@host.local.domain&gt; Jan 12 00:19:53 gamma postfix/qmgr[11860]: A1EFD800DB: from=&lt;root@host.local.domain&gt;, size=456, nrcpt=1 (queue active) Jan 12 00:19:53 gamma postfix/error[11887]: A1EFD800DB: to=&lt;john@gmail.com&gt;, relay=none, delay=0.02, delays=0.01/0.01/0/0, dsn=4.7.0, status=deferred (delivery temporarily suspended: SASL authentication failed; cannot authenticate to server smtp.gmail.com[173.194.78.109]: no mechanism available)
120729
I've been trying to configure email to forward to Gmail, using Postfix to relay email to smtp.gmail.com. However, I'm failing to get it to authenticate with smtp.gmail.com, which is a rather vital prerequisite to getting anything working…  The mail logs show only:  Oct 29 15:50:14 gsnedders-1 postfix/master[6596]: daemon started -- version 2.7.1, configuration /etc/postfix Oct 29 15:50:19 gsnedders-1 postfix/pickup[6598]: EBA1F78750: uid=1000 from=&lt;gsnedders&gt; Oct 29 15:50:19 gsnedders-1 postfix/cleanup[6603]: EBA1F78750: message-id=&lt;20111029145019.EBA1F78750@mail.gsnedders.com&gt; Oct 29 15:50:19 gsnedders-1 postfix/qmgr[6599]: EBA1F78750: from=&lt;gsnedders@gsnedders.com&gt;, size=324, nrcpt=1 (queue active) Oct 29 15:50:19 gsnedders-1 postfix/cleanup[6603]: F2D557874F: message-id=&lt;20111029145019.EBA1F78750@mail.gsnedders.com&gt; Oct 29 15:50:19 gsnedders-1 postfix/local[6605]: EBA1F78750: to=&lt;me@gsnedders.com&gt;, orig_to=&lt;me&gt;, relay=local, delay=0.04, delays=0.03/0.02/0/0, dsn=2.0.0, status=sent (forwarded as F2D557874F) Oct 29 15:50:19 gsnedders-1 postfix/qmgr[6599]: F2D557874F: from=&lt;gsnedders@gsnedders.com&gt;, size=454, nrcpt=1 (queue active) Oct 29 15:50:19 gsnedders-1 postfix/qmgr[6599]: EBA1F78750: removed Oct 29 15:50:20 gsnedders-1 postfix/smtp[6606]: warning: SASL authentication failure: No worthy mechs found Oct 29 15:50:20 gsnedders-1 postfix/smtp[6606]: F2D557874F: SASL authentication failed; cannot authenticate to server smtp.gmail.com[74.125.157.108]: no mechanism available   And the postfix config is:  relayhost = [smtp.gmail.com]:587  smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd smtp_sasl_security_options = noanonymous  smtp_tls_eccert_file = smtp_tls_eckey_file = smtp_tls_security_level = may smtp_tls_CAfile = /etc/postfix/cacert.pem smtpd_tls_received_header = yes tls_random_source = dev:/dev/urandom smtpd_tls_security_level = may
117436
When I run "sudo /usr/sbin/apache2ctl graceful" I get the following message:  httpd not running, trying to start (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs  When I run "sudo netstat -lnp | grep :80" I get:  tcp        0      0 127.0.0.1:80            0.0.0.0:*               LISTEN      845/aolserver4-nsd  I assume aolserver is also running? How would I get apache to run?
50181
I've installed Postfix on Ubuntu 14.04 with the defaults. I then configured some virtual aliases to forward email from a few addresses to various personal (mostly Gmail) accounts. This is just to make these addresses all connect cosmetically to the domain on the website we are hosting.   Unfortunately, in a short amount of time Gmail has started rate blocking the forwarded emails due to spam. Apparently, Postfix is rewriting the headers in a way that makes Gmail think all the spam is originating with our server. Google  for information on how to best forward to them.  In it, they say:     We recommend that you do not change the envelope sender when   forwarding email to Gmail. Sometimes, when forwarding email, the   envelope sender gets changed to your domain. When this happens, Gmail   may learn that your domain is sending spam, and will treat other   emails from this domain as spam as well.   This make sense, but it would still seem that Gmail would have to see the IP and hostname of our mail server and register it as a source of spam. But this is what they say and I've found nothing on point anywhere.   I even tried using Mailgun to filter the forwards as they provide spam blocking, but within a day they deactivated the domain and are being rather slow to respond to my inquiries. Any help is appreciated. I would like to avoid a full fledged mail server setup just to handle a few rarely used forwards.  Update: My original assumption was incorrect in that Postfix is not rewriting the headers, however the original issue remains. Gmail is rate limiting forwards due to excessive spam. It would be understandable if they limited the servers that are actually sending the email, and these are listed in the headers as part of the delivery chain.
31710
I have problem in send mail from postfix in centos  I have following  for sending mail but I am getting error.  As in the link I tried following commands  telnet localhost smtp  Trying ::1... Connected to localhost. Escape character is '^]'. 220 mydomain.com ESMTP Postfix ehlo localhost 250-mydomain.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN mail from:&lt;domain.com&gt; 250 2.1.0 Ok rcpt to:&lt;test@gmail.com&gt; 554 5.7.1 &lt;test@gmail.com&gt;: Relay access denied   Edit-1  In terminal this works  echo TEST | mail -v -s "Test mail" testing@gmail.com   my postconf -n shows belog information  alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 home_mailbox = Maildir/ html_directory = no inet_interfaces = localhost inet_protocols = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = dummy.com myhostname = dummy.com mynetworks = all mynetworks_style = host myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES sample_directory = /usr/share/doc/postfix-2.6.6/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550   What configuration I have to perform to send mails from my server.
54075
I have a web server hosting multiple domains (centos + postfix + dovcot), one of my domain  its dns is hosted on cloudflare (ie. abcd.com), but when I use gmail to send email to a user@abcd.com, user@abcd.com will not be able to receive the email. Here is the MX record I set in cloudflare:  Type   Name   Value                                       TTL          Active mx     mail   handled by mail.abcd.com with priority10    Automatic      cname  mail   is an alias of abcd.com                     Automatic    grey cloud   Any knows how can I make the domain receive the emails?
91810
I'm sending an email through my application code. The email gets into my Gmail spam folder. However, a test of the same email in ISnotSPAM is marked as non-spam. My application is using Sendgrid to send emails. Will appreciate some advice to avoid reaching the spam folder.  Below is an example of ISnotSPAM report, marking the email as non-spam. The same email has reached my gmail's spam folder.  ========================================================== Summary of Results ==========================================================  SPF Check : pass Sender-ID Check : neutral DomainKeys Check : pass DKIM Check : pass SpamAssassin Check : ham (non-spam) ========================================================== Details: ==========================================================  HELO hostname: mail-bk0-f48.google.com Source IP: 209.85.214.48 mail-from: olgaduboshin@gmail.com --------------------------------------------------------- SPF check details: ----------------------------------------------------------  Result: pass ID(s) verified: smtp.mail=myemail@gmail.com DNS record(s): gmail.com.   155    IN  TXT "v=spf1 redirect=_spf.google.com"   ---------------------------------------------------------- Sender-ID check details: ----------------------------------------------------------  Result: neutral ID(s) verified: smtp.mail=myemail@gmail.com DNS record(s): gmail.com.   155    IN  TXT "v=spf1 redirect=_spf.google.com"   ---------------------------------------------------------- DomainKeys check details: ----------------------------------------------------------  Result: pass ID(s) verified: header.From=myemail@gmail.com Selector= domain= DomainKeys DNS Record=._domainkey.  ---------------------------------------------------------- DKIM check details: ----------------------------------------------------------  Result: pass ID(s) verified: header.From=myemail@gmail.com Selector=20120113 domain=gmail.com DomainKeys DNS Record=20120113._domainkey.gmail.com  ---------------------------------------------------------- SpamAssassin check details: ---------------------------------------------------------- SpamAssassin v3.3.1 (2010-03-19)  Result: ham (non-spam) (0-1.1points, 10.0 required)  pts rule name description ---- ---------------------- -------------------------------   * 0.0 FREEMAIL_FROM Sender email is freemail (myemail[at]gmail.com) * -0.0 SPF_PASS SPF: sender matches SPF record * 0.1 HTML_MESSAGE BODY: HTML included in message * 0.0 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.0 DKIM_VERIFIED DKIM_VERIFIED * 0.0 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * -1.0 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.214.48 listed in list.dnswl.org] * 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL X-Spam-Status: Yes, hits=-1.1 required=-20.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VERIFIED,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.1 X-Spam-Score: -1.1  To learn more about the terms used in the SpamAssassin report, please search here: http://wiki.apache.org/spamassassin/
32222
I need to configure proxy. There wasn't apt.conf file in etc/apt/ so I've created it using nano.   But I don't understand what I need to write there. I've written  http_proxy = http://lgn:pwd@192.168.1.254:8080/ there and then restarted networking. But when I try to apt-get update - it doesn't work.   Actually I don't understand what port and ip I should write in apt.conf file(there was example with 192.168.1.254 ip and 8080 port so I decided to use them).
5338
I'd like to know if any certificates support a double wildcard like *.*.example.com? I've just been on the phone with my current SSL provider (register.com) and the girl there said they don't offer anything like that and that she didn't think it was possible anyway.   Can anyone tell me if this is possible, and if browsers support this?
80125
How do I setup spamtraps with Postfix so clients that send to trapped addresses are prevented from sending me more spam?
103463
I updated some entries in the  at C:\WINDOWS\System32\drivers\etc.  As a test, I decided to make Google point to 127.0.0.1.  # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # #      102.54.94.97     rhino.acme.com          # source server #       38.25.63.10     x.acme.com              # x client host  127.0.0.1       localhost ::1             localhost 127.0.0.1       google.com   This works fine on Windows Vista, but not on Widows 7. When I type google.com into my browser, it goes directly to Google's website.  I am not using a proxy server, and I think there might be some temporary DNS settings that need to be flushed, but I'm not sure.  Does anyone know how to fix this?
6223
I want to route emails with the From: .*@host1.com through smtp.server1.com and emails with the From: .*@host2.com through smtp.server2.com.  For the moment, I have smarthost configured with dpkg-reconfigure exim4-config so that update-exim4.conf.conf contains the line  dc_smarthost='smtp.server1.com::587'. That is, everything routes through smtp.server1.com.  I tried adding another router just before the definition of smarthost: in the config file, setting senders = .*@host2.com  smarthost_server2:   debug_print = "R: smarthost_server2 for $local_part@$domain"   driver = manualroute   domains = ! +local_domains   transport = remote_smtp_smarthost   senders = .*@host2.com   route_list = * smtp.server2.com byname   host_find_failed = ignore   same_domain_copy_routing = yes no_more   but exim still routes everyting via smtp.server1.com. Do I use the senders condition correctly?  AFAIU, this should be a rather common setup for cases when people with emails .@google.com and .@gmail.com do not want to reveal in their @gmail.com email headers the fact that they are also google employees, so the routhing should be different.
65869
I'm currently trying to configure our exchange 2010 to be used as a external smtp relay. What I'm trying to do is allow certain websites that we manage to send email using our exchange server smtp relay. I was told that I needed to created a receiver connector under Server Configuration>Hub Transport. After I created the receiver connector I added the following confi in which I added the website IP address in the "Receiver mail from remote servers ect" then unders Authentication I selected Externally Secured,TLS and under permissions I selected exchange servers.   I went to one of our websites and configure it with this configuration and I'm still getting "SMTP connect failed."  Can someone help me? or what is the  proper way to get this to work. Multiple websites are going to be using this exchanger server SMTP relay in a secure way.
99219
I am trying to install SSL on my nginx reverse proxy with certified ssl keys but i get this message when i try to restart server:  Restarting nginx: [emerg]: SSL_CTX_use_PrivateKey_file("/etc/nginx/conf.d/cert.key") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib) configuration file /etc/nginx/nginx.conf test failed   everyfiles are root:root with 600 permissions i've tested the certificats and they are validated with this website:   there are no trailing weird caracters in my keys, and has 64 caracter per line  here is my config file  server {     listen   443;     server_name     my.domain.com;     ssl on;     ssl_certificate      conf.d/cert.pem;     ssl_certificate_key  conf.d/cert.key;      location / {          proxy_pass         http://upstream1;          proxy_redirect     off;          proxy_buffering    off;          proxy_set_header        Host            $host;          proxy_set_header        X-Real-IP       $remote_addr;          proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;     }   }  Any ideas? Thank you
18425
I've set up proftpd to use ssl/tls. Trying to connect I get an 'Illegal PORT command'  Finding Host xxx.nl ... Connecting to xxx.xxx.xxx.xxx:21 Connected to xxx.xxx.xxx.xxx:21 in 0.018001 seconds, Waiting for Server  Response Initializing SSL Session ... 220 FTP Server ready. AUTH TLS 234 AUTH TLS successful SSL session NOT set for reuse SSL Session Started. Host type (1): AUTO USER xxx 331 Password required for xxx PASS (hidden) 230 User xxx logged in SYST 215 UNIX Type: L8 Host type (2): Unix (Standard) PBSZ 0 200 PBSZ 0 successful PROT P 200 Protection set to Private PWD 257 "/" is the current directory CWD /var/www/html/ 250 CWD command successful PWD257 "/var/www/html/" is the current directory TYPE A 200 Type set to A PORT 192,168,192,14,211,181 500 Illegal PORT command Port failed 500 Illegal PORT command PASV 227 Entering Passive Mode (xxx,xxx,xxx,xxx,160,151). connecting data channel to xxx.xxx.xxx.xxx:160,151(41111) Failed to connect data channel to xxx.xxx.xxx.xxx:160,151(41111)   iptables:  Chain INPUT (policy ACCEPT) target     prot opt source               destination ACCEPT     icmp --  anywhere             anywhere            /* 000 accept all icmp */ ACCEPT     all  --  anywhere             anywhere            /* 001 accept all to lo interface */ REJECT     all  --  anywhere             loopback/8          /* 002 reject local traffic not on loopback interface */ reject-with icmp-port-unreachable ACCEPT     all  --  anywhere             anywhere            /* 003 accept all to eth1 interface */ ACCEPT     all  --  anywhere             anywhere            /* 004 accept related established rules */ state RELATED,ESTABLISHED ACCEPT     tcp  --  anywhere             anywhere            multiport ports ftp /* 021 allow ftp. */ ACCEPT     tcp  --  anywhere             anywhere            multiport ports ssh /* 022 allow ssh. */ ACCEPT     tcp  --  anywhere             anywhere            multiport ports smtp /* 025 allow smtp. */ ACCEPT     tcp  --  anywhere             anywhere            multiport ports pharos /* 051 allow rundeck. */ ACCEPT     tcp  --  anywhere             anywhere            multiport ports 8140 /* 814 allow puppetserver. */ ACCEPT     tcp  --  anywhere             anywhere            multiport ports http /* 080 allow http. */ ACCEPT     tcp  --  anywhere             anywhere            multiport ports https /* 443 allow https. */ DROP       all  --  anywhere             anywhere            /* 999 drop all */  Chain FORWARD (policy ACCEPT) target     prot opt source               destination  Chain OUTPUT (policy ACCEPT) target     prot opt source               destination   Connecting via normal ftp works just fine...  I'm using WS_FTP with ftp-authssl//xxx.nl/.... I tried several other connection options, ports, etc. But all give the same error. Althoiugh it seems that sometimes a first directory listing is shown (but that might be caching of WS_FTP)
49457
In our application, we send different kind of mails. On a broad view we can generalize it in two category,   Mails which monitor the health of the app. Mails which we send to end user.   Is there any way(Setting some header/configuring some parameter in postfix), such that for the same sender address, we can use different relay host?
40552
I have a postfix server installed on Ubuntu 14.04. A PHP script running on the machine uses it to send outgoing email. Additionally, I use postfix to receive mail sent to a local account, which is then forwarded to my personal gmail.  However, this means that anyone can connect to my server and use it as an open relay for spam. How can I  prevent remote connections from relaying email?  This is my main.cf:  smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination myhostname = aviacao.pt virtual_alias_maps = hash:/etc/postfix/virtual alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = aviacao.pt, localhost.localdomain, localhost relayhost =  mynetworks = 0.0.0.0/0 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all inet_protocols = ipv4   If I change mynetworks to 127.0.0.0/8 then people won't be able to send email to the local account.
43245
I know, I know, I should switch to Postfix.  But in the meantime, how do I throttle outbound email (especially email to a single domain) in Sendmail?