Server :: Postfix 2.6.5 Rejecting Email To All Recipients If One Recipient Is Bad?
Oct 6, 2010
I have an ubuntu server running postfix 2.6.5 (configured using DTC). If a user tries to send an email to more than one recipient, and one recipient address is bad, then the server returns an error and no mail is sent (even to the good addresses), rather than letting the good ones through. Error displayed by thunderbird is
Code:
"An error occurred while sending mail. The mail server responded: 5.1.1 [URL]: Recipient address rejected: User unknown in virtual mailbox table. Please check the message recipient noreply@domain.com.au and try again." and mail.log shows ...
Code:
Oct 6 20:35:08 www1 postfix/smtpd[22716]: connect from xxxxxx [xxx.xxx.xxx.xxx]
Oct 6 20:35:08 www1 postfix/smtpd[22716]: B62F92A44: client=xxxxxx [xxx.xxx.xxx.xxx], sasl_method=PLAIN, sasl_username=blake@domain.com.au
This seems like a relatively simple question, but I haven't been able to figure it out from the documentation after a couple of hours of searching. I'm running postfix on my mail server, and the vast majority of my spam has the sender address spoofed to match the recipient address. I've got spamassassin up and running, and very little gets through that, so it's not a serious problem, but if possible I would like to be able to reject the mail before it arrives to reduce the system load.
Mail is sent locally via webmail, relaying is denied, so the only way that mail should be sent from the domain is via a connection from localhost. The basic idea I'm thinking of is if the MAIL FROM sender claims to be an address at the receiving domain, but is connected from a remote IP, the mail should be rejected.
My company email server has been working flawlessly for the last 5+ years. Recently, one of our clients put their email server behind a firewall (an assumption on my part; details below). Ever since, email sent from within the company (192.168.xxx.xxx internal address; all computers and server is behind a NAT firewall [Netgear FVX538]) is either being sent to the client after some delay (if email is sent using Outlook) or is being deferred until the messages expire (Thunderbird, Squirrelmail, etc.). Email sent to the client from anywhere outside the company (using Thunderbird, Outlook or any other email client) is also delivered without any problems (usually after a short delay).
All other emails to the World are being sent without any problems at all (both inside and outside the company; using any email client or webmail). I did contact the client's postmaster, but the client, being a large government agency, will probably not address the problem (if it is on their side) anytime soon. I am not sure if I can do anything from my end to solve the problem. Ever since the problem with the client began, I added two statements to the postfix configuration file (smtp_pix_workaround_delay_time = 20s and smtp_pix_workaround_threshold_time = 0s); this seemed to a bit - it reduced the delay for emails sent via Outlook to a few minutes (as opposed to 30+ minutes); emails sent using Thunderbird/webmail are still being deferred.
Server details: Dual quad-core processor machine, 32 GB RAM, dual 1 gbps network, running Fedora 14 (64-bit; loosely modeled along the lines of Perfect Server (with ISPConfig2) as described on the howtoforge website). Running Postfix (v. 2.7.1), Dovecot (v. 2.0.9).
I emailed the client's postmaster suggesting they disable smtp fixup. But still, what bothers me now is that Outlook works (both within and outside the company) while Thunderbird, webmail, etc. (used by ~90% of the users) do not. In addition, all email clients from outside the company can send email (authenticated via the company server) to the client without any problems. Is there anything I can do on my end to make non-Outlook clients work within the company (webmail is hosted on the company server; so, it would have an internal address as well)?
I'm looking for a way to redirect e-mail with postfix based on sender AND recipient. What I want: Let's say I have 3 users:
[code]....
and an external address, let`s call it [URL] sends e-mails every day to andy, mark and john Now, MARK and JOHN, need the e-mail sent by [URL], but TOM doesn't need it. Is there a way to redirect ONLY the e-mail sent to TOM from [URL], to some other address, let`s say [URL] without affecting the e-mail received by MARK and JOHN? Unfortunately using SENDER ACCESS redirects ALL e-mail from [URL]
I've enabled popb4smtp in my mail server. Is this because of the IP 117.58.246.10 don't have a dns record? How can I sending email from this type of Ip which don't have dns entry?. But if I enable SMTP auth I can send email form this same ip. Another thing is I can connect to port 587 from the email client to send email but can't connect to port 25.
I have enforced to use the Linux /etc/passwd file to authenticate myself from Outlook, Postfix will accept mail from any IPs. However, I'm not able to send mails from my Outlook via my mail server to someone else on the Internet. Am seeing the following in Postfix's log.
Code: Mar 11 21:07:39 production postfix/smtpd[16366]: connect from pcdxxxxx.netvigator.com[203.218.211.256] Mar 11 21:07:39 production postfix/smtpd[16366]: NOQUEUE: reject: RCPT from pcdxxxxx.netvigator.com[203.218.211.256]: 554 5.7.1 <someone@hotmail.com>: Relay access denied; from=<mate@mydomain.com> to=<someone@hotmail.com> proto=ESMTP helo=<Windows> Mar 11 21:07:42 production postfix/smtpd[16366]: disconnect from pcdxxxxx.netvigator.com[203.218.211.256] Here are my Postfix settings.
I have this strange error - I switched from postfix 2.6.5 to 2.8.2 and I some mailservers cannot send mail to me. One of them was some sendmail server. I have virtual alias maps in mysql. It works fine for almost all server that are sending mail to me, but some of them seems to send mails as user@FQDN instead of user@virtualdomain my machine name is x49.tvujweb.cz, and mz email is kamil.horky@servis-it.net but in server logs is that user kamil.horky@x49.tvujweb.cz cannot be found in virtual alias maps.
I've recently followed a guide I found online [1] and installed Postfix and Courier on my server machine. I can send emails from the server to any email address but unfortunately I can only receive emails sent from the server - it's only accepting emails sent locally from the host.
I've got an uber simple test mail script in php on my awesome new dev machine running Ubuntu:
PHP Code:
Unfortunately, something is preventing mail delivery. I can't tell from this error log whether it's the remote machine rejecting me or whether it's my machine rejecting the self-signed cert on the remote machine:
Code:
I'm wondering what I could change in my postfix configuration to remedy this problem.
I tried setting smtp_tls_security_level = may = may but this did not change anything.
I'm facing the best problem which I ever had, where is the previous vendor don't do any documentation. So my task actually do some enhancement on the filtering solution actually, but what I found out is like this..
here my cat /var/log/maillog
Jan 31 09:47:02 mws postfix/cleanup[11028]: 998464290DB: hold: header Received: from mail.jkm.gov.my (webmail.jkm.gov.my [10.0.223.2])??by webmail.jkm.gov.my (Postfix) with ESMTP id 998464290DB??for <hidzuan@gmail.com>; Mon, 31 Jan 2011 09:47:02 +0800 (MYT) from webmail.jkm.gov.my[10.0.223.2]; from=<e1@jkm.gov.my> to=<hidzuan@gmail.com> proto=ESMTP helo=<mail.jkm.gov.my>
All the emails I send from my linux server end up in the recipient's spam folder....Although I have tried many howtos etc and checked all blacklists... It doesn't work...
We have MS Exchange email server with postfix/amavis on FreeBSD as proxy for anti-spam and anti-virus. We use our own developed CRM and trying to implement such functionality that when CRM manager send email to CRM client or vice versa through email client like Outlook (no plugins for CRM) this message would be shown in CRM. There is already a solution to parse emails from specific emailbox and show it in CRM.
What I need is to create postfix email filter to check if sender email is in file CRM_managers_emails and recipient email is in file CRM_clients_emails then forward that email to [URL] Filter should check both incoming and outgoing messages. I will auto generate CRM_managers_emails and CRM_clients_email files containing all such emails taken from CRM database. I know i should use something like Postfix After-Queue Content Filter but most of examples are for blocking emails.
This is a transcript I get emailed at least once every day, usually about 3 to 10 a day recently.
Transcript of session follows. SMTP server: errors from unknown[ip address] <boring stuff snipped> In: RCPT TO: <server@my domain> Out: 550 5.1.1 <server@my domain>: Recipient address rejected: User unknown in local recipient table
Session aborted, reason: lost connection Now I cannot seem to find anything via Google, as when I put "server@" anywhere in the string, I just get web hosting or other kroomst. The emails usually come from legit places, usually hotels. Does this mean they are sending bad emails, i.e. they have a Trojan/worm, or is this a live hack attempt?. I believe the later, as I might get upto 3 domains from the one ip address, which is always, NOT associated with the listed domain. Not causing me any issues, except I have been getting a lot recently.
There is a mail server formed by debian4 + postfix 2.3.8 . Some messages aren't received or take too loong to be received. Here is a example or error in mail.log:
Code: Mar 24 10:30:42 myserver postfix/smtpd[7467]: NOQUEUE: reject: RCPT from n7b.bullet.mail.re1.yahoo.com[69.147.103.218]: 450 4.1.7 <sentto-733423426-11-134235567-myname=mydomain.com@returns.groups.yahoo.com>: Sender address rejected: unverified address: Address verification in progress; from=<sentto-733423426-11-134235567-myname=mydomain.com@returns.groups.yahoo.com> to=<myname@mydomain.com> proto=SMTP helo=<n7b.bullet.mail.re1.yahoo.com>
I recently set up a machine with Ubuntu 10.4 LTS to help to replace an aging VAX mailserver that was the DMZ mailserver for the company I work for. I set up a default install of postfix (via apt-get) to function as a DMZ border device that routes between two internal mailservers based on subdomain aliasing via internal DNS.
The problem is that although I have installed no anti-spam or anti-virus options, mail sent to this machine from any outside source containing a password-protected zip file is being rejected with error:
552 Password protected zip file found inside of the email
At first I'd thought that possibly it was the sending mailserver issuing this error, but after further testing I found that no matter the source, any password protected zip file is immediately rejected. Being as we're in a HIPAA-sensitive environment, this has been relied upon as a backup for people to do one time encrypted file sends via email. The file in question is relatively small, and I do not have any quotas on, and the same test file sent two ways (one encrypted zip and one non-encrypted zip) caused the encrypted zip only to fail.
As stated before, I do not use any type of antivirus or antispam measures, no header or body checks have been put in place, and in the course of trying to troubleshoot this problem, have probably opened my server up more than is strictly wise. I really need to enable this feature as being unable to take encrypted zips puts the entire migration at risk.
I've read many post close to my subject regarding blacklisting incoming emails, but non of them described what I really want:How can I reject a continuously changing email from my postfix, here is what I mean:
I think you got what I mean, the thing I've taken from the posts I've read is that I created a sender_access file hashed it and added the:smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_accessto postfix main.cf configurationThe sender access file reads:abduooo*@googlegroups.com REJECTBut that didn't work, I know that there is some magical slashes and dots to be added to the sender_access, but I don't know which.
we have a Postfix mail relay server. Not to be an open relay we use check_sender_access restriction with allowed sender domains. Is there a way how to configure postfix to accept mails from any domain for a specified recipient? Something like
Code:
if (recipient_address==host@mydomain.com) accept; We have an admin mailbox and we need it to be accessible from everywhere.
block incoming email within either postfix or spamassassin when the sender equals the recipient. The manner in which our mail infrastructure is set up would preclude this from happening. Granted, we do have outside vendors that spoof our domain so we have to allow emails in with our domain as the sender/from. The vendors do not, however, utilize the same sender/recipient when sending emails.
i need to configure postfix on centos to relay email from the internet to the Exchange Server and i also need that emails sent from the exchange within the same domain be sent to postfix then resent to exchange because i have spamassassin and clamav installed on centos to filter all incoming and outgoing mails ...
i have setup mailrelay using postfix and relay email to exchange server. The problem is how can i relay email to multiple exchange server. For example: -
domain aa.bb.com relay to exchange server 10.10.10.10 domain 123.test.com relay to exchange server 192.168.10.5
i can't receive outside emails on a postfix server. i was able to get it to send emails with help in this thread. i can telnet into it via localhost, but not via domain name.
I have an issue where postfix is setup to use dovecot auth and as far as I know it works, if i login using telnet to the mail server i can authorize myself y providing the base64 encoded user & password. so if i can login, why cant my email clients. have tried thunderbird and evolution. this is the mail.log relavant entries for sucessful login via telnet
[Code]...
Login by pop or imap works flawlessly that what i dont get. From what i see it SHOULD be working. It it changes things, im using postfixadmin, postfix, dovecot. passwords and info stored in mysql tables. passwords are md5 encrypted. I thought that may be the issue, but that dosnt make sence.
I have postfix sort of working correctly. postfix can send email to the internet but it doesn't want to send email to my local exchange server. What I need is for postfix to send emails directed to @xyz.com to my exchange server instead of itself.
My setup mail.xyz.com - exchange 2003 server www.xyz.com - centos 5.3 server with postfix
www.xyz.com can send emails to my hotmail.com account so that part works correctly. www.xyz.com can't send email to username@xyz.com. postfix seems to be delivering the email to itself and not the exchange server.
How can I tell postfix to send the @xyz.com emails to my exchange server?
Here is a sample of my /var/log/maillog Jul 22 15:43:43 list postfix/smtpd[9802]: D63168604A3: client=localhost.localdomain[127.0.0.1] Jul 22 15:43:53 list postfix/cleanup[9805]: D63168604A3: message-id=<20090722204343.D63168604A3@www.xyz.com>
How can I send email outside my LAN using postfix? Actually, I can received email from outside like yahoo. hotmail etc.. But when I am trying to send outside in my mail server here is the error I got..
Jun 2 21:19:51 microtontech postfix/smtp[4434]: connect to k.mx.mail.yahoo.com[98.139.54.60]: Connection timed out (port 25) Jun 2 21:20:10 microtontech postfix/smtp[4435]: connect to
[code]....
I try to telnet yahoo.com and smtp.pldtdsl.net 25 here are the result, but when I try to telnet smtp.pldtdsl.net its showing trying only.. I checked if my ISP is blocking port 25 isn't. (I forgot what is the website I used to check if my ISP port 25 is block) I try already to used in my relayhost the [URL] but the email I sent still bouncing..But I remember last time when I was installed Hmailserver in my Win2K3 machine I sent email outside but I cannot received..
I'm experimenting with with mail-servers now and I'm trying to configure postfix to send emails from one email(pop3 is gmail) to any email outside the local network. Server is Ubuntu 10.10 with the last updates.
I want a mail server that can work just like MDaemon. The reason is, I want to have an email content filter rule that does some thing like this.
1. If the To Header contains "support@thisdomain" then run a program. What this means is that, there is a program here in the office, and if some one sends an email to the support address, with an attachment of .exe and that person is a customer, then the program should be run. The only thing I need here is if there is a rule or script that can filter email header and run a program.
2. If the Exit Code from a previous 'Run program' rule is in the range of 1 to 100 and if the To Header contains "support@thisdomain" then send note1 "to<email address>" from <$SENDER$" "SUBJECT <AM ...> and delete this message.
3. If the EXIT CODE from a previous 'Run program' rule is =0 and if the TO HEADER contains "support@thisdomain" then send note1 "to<email address>" from <$SENDER$" "SUBJECT <AM ...> and delete this message.
I have a postfix system that sends allot of emails to customers and web site visitors. A lot of visitors just enter an invalid email in the WEB form just to download some files or do other tasks. Is it possible to BLACKLIST specific email addresses so the system does not send to those addresses? I can grep from the postfix mail log all those fake emails and place them somewhere.
It wasn't too long ago that I discovered Linux/Ubuntu (in terms of actually USING it) and I've been completely blown away by the capabilities it puts in the user's hands! To think that someone can take an old desktop from a trash pile (literally, in my case) and turn it into a web server for ZERO dollars is absolutely crazy.
Anyway, I've been using said desktop as a sort of "dummy" machine to learn Linux. I want to be clear that I've got another computer for personal use and that I understand that setting up server software on any computer poses a security risk. Having said that, I have a few questions regarding mail servers and their setup on Ubuntu. Again - I'm comfortable with what I've done so far in Ubuntu (installing packages, terminal interaction, basic usage)
My question is mainly this: if you have, say, a domain name through DynDNS (let's say example123.com) and it points to an Ubuntu system, does something like Postfix enable you to make your own email addresses such as user1@example123.com and have an email server from wherever the Ubuntu system is?
I've been following the basic Postfix setup here and have had success so far (down to the "Adding your local domains to postfix" section) bu wanted to make sure that what I'm intending to do is what I'm doing (haha... i hope that makes sense). That is: get domain name at DynDNS, host pages on LAMPP server, use Postfix to facilitate incoming/outgoing email for that domain name.
what do I need to change in postfix/ dns to send email to one one of the email server hosted by 1and1.
I'm using zenoss to monitor system/ network and devices. I wanted to setup email notification , so I installed postfix. All works fine when I use my private account on yahoo or hotmail. but when I specify email account that is hosted by 1and1 I receive error 421. "
xxxxmyserver postfix/smtp[5399]: B0A5B22A06: to=<1and1emailaddress>, relay=mx00.1and1.co.uk[212.227.15.169]:25, delay=0.8, delays=0.04/0.02/0.62/0.12, dsn=4.0.0, status=deferred (host mx00.1and1.co.uk[212.227.15.169] said: 421 invalid sender domain 'xxxxmyserver' (misconfigured dns?) (in reply to RCPT TO command))