The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

0

I don't think there is a simple (ie trivial) way to do this, and there are most likely multiple solutions. I implemented this for my mail system (which hosts a fair number of boxes and domains) and hooks into a custom written CMS (BLISS3) as follows: Added to /etc/postfix/master.cf autoresponder unix - n n - - pipe ...


-1

I know it's late but it is failing because of what you see in this line: Received: from mail.morpheu5.net ([172.18.0.14]) by 6c01c2ccb641 with LMTP Specifically the by 6c01c2ccb641 with LMTP If you can match it so that 6c01c2ccb641 also shows up as mail.morpheu5.net , it will work just fine.


0

It is common to have multiple servers in a domain. Normally very few servers, usually designated as an MX, send mail directly to the internet. Only server(s) designated as an MX should be receiving mail from the internet (not likely an issue in your case). Other servers in the network will forward their mail to a relay server, often an MX server, which ...


0

This is not something that will be part of the Postfix system itself, although it is almost certain there are plugins that will help. A commonly used plugin is spamassassin, which parses email and provides a score based on various criteria. There is nothing to stop you adding a plugin to drop newsletter emails. The effectiveness of spamassassin in this ...


0

You can write a script or find one to do that for you, so you just enter the email and domain or any other options, and the rest would be done by it. Also let the script after creating the mailbox to send email message, as the box will not be created till email arrives for it. I use bash script to do that for me.


-1

Stop your amavisd service, start manually clamd@scan and clamd@amavisd. Then restart amavisd systemctl stop amavisd systemctl start clamd@amavisd systemctl start clamd@scan systemctl start amavisd


0

There may be things you are missing. With respect of deliver ability, there are a few things a mail server needs to do - like forward and reverse DNS records (as well, ideally, as SPF records). There are also volime/reputation issues wbich may or may not be relevant. My suggestion - don't. Configure postfix to relay to the appropriate MX for yourndomain. ...


0

I am using centos 7 Finally it works! I was getting this issue(tail -f /var/log/mailog): to=<usmanali@example.com>, relay=smtp.sendgrid.net[169.45.113.201]:587, delay=0.3, delays=0.05/0.07/0.16/0.02, dsn=5.0.0, status=bounced (host smtp.sendgrid.net[169.45.113.201] said: 550 Unauthenticated senders not allowed (in reply to MAIL FROM command)) Then i ...


0

I was getting this issue(tail -f /var/log/mailog): to=<usmanali@example.com>, relay=smtp.sendgrid.net[169.45.113.201]:587, delay=0.3, delays=0.05/0.07/0.16/0.02, dsn=5.0.0, status=bounced (host smtp.sendgrid.net[169.45.113.201] said: 550 Unauthenticated senders not allowed (in reply to MAIL FROM command)) Then i changed file /etc/postfix/main.cf in ...


0

DKIM signing doesn’t make a lot of sense for locally delivered mail - the server assumes it can trust itself. Try sending mail to an external domain and look at those headers instead.


0

After a bit of more tweaking I finnally got it to work. Here is an explanation of what is going on. Z-push is written in PHP and what I could find on the Internet, was that PHP mail settings is controlled via php.ini. In php-ini-file you will be told that the only option available when sending mail is through sendmail and therefore all received mails ...


0

You should by default have 127.0.0.1 already set for the server don't bind it. set the mydestination in main.cf to: myhostname = mail.tohuw.net mydomain = tohuw.net mydestination = $myhostname, localhost.$mydomain, localhost Keep myhostname above mydestination And in your /etc/hosts insert: 127.0.0.1 mail.tohuw.net,mail


4

Make any suitable lookup table dynamic by adding a sufficiently dynamic lookup method, such as SQLite. If postfix itself delivers the mail (no dovecot etc), the alias table seems appropriate. I will demonstrate for local mail (analogous configuration possible for virtual). You may keep your existing (e.g. hash:) lookup(s) and just add the new method: ...


0

I would suggest you to use different keys for different domains. You don't need to specify them with same Selector, as when KeyTable is used, Selector configuration parameter is not used.


0

I had similar problem. The problem is really, that dovecot as local delivery agent (LDA) has no idea about /etc/aliases. So I've decided to implement my own LDA as a simple shell script. You can use my script as a skeleton for your requirements. See my question and answer here and don't forget to score my answer.


0

The problem is really, that dovecot (not spamassassin) as local delivery agent (LDA) has no idea about /etc/aliases. So I've decided to implement my own LDA as a simple shell script: #!/bin/bash # This script started by spamassassin (spamc) as defined in /etc/postfix/master.cf: # spamassassin unix - n n - - pipe # flags=DROhu ...


0

There is a less known static lookup table type in Postfix, which can be used for exactly this purpose: alias_database = static:user@example.com alias_maps = static:user@example.com If user@example.com is not local for this system, you'd also probably want to discard all the bounce messages by replacing lines ending with bounce with discard in master.cf to ...


0

Add email addresses to /etc/postfix/virtual mylocalusername@mydomain.com mylocalusername mylocalusername2@mydomain.com mylocalusernam2 Then run postmap /etc/postfix/virtual Un-comment the line that reads the following. virtual_alias_maps = hash:/etc/postfix/virtual Restart postfix systemctl restart postfix Also make sure you server is listening on ...


0

I got this relay problem when i tried to send an email with terminal: nc mail.mydomainname.nl 25 220 mail.mydomainname.nl ESMTP Postfix (Ubuntu) EHLO mydomainname.nl 250-mail.mydomainname.nl 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250-DSN 250 SMTPUTF8 MAIL ...


0

I found cat /var/run/opendkim/opendkim.pid = 3091. I inserted the line : Socket inet:3091@localhost in opendkim.conf. I added the smtpd_milters = inet:localhost:3091 non_smtpd_milters = inet:localhost:3091. And finally , opendkim is communicating with postfix . I checked with netstat -apn|grep opendkim : tcp 0 0 127.0.0.1:3091 0.0.0.0:*...


2

If you're trying to match actual words, instead of just random bits of text that might appear within a word, you should include word boundaries in your regular expression. For example: /man/ DISCARD This will match both man and humans. But use the word boundary to indicate that you want to match only a complete word. /\bman\b/ DISCARD Now this will ...


0

If you are using body_checks in a way that risks matching unrelated mail, you are likely using it for purposes it was never meant to serve. Use purpose-built (such as rspamd or spamassassin) to detect spam, as they allow to make balanced decisions based on multiple properties of the mail. Use body_checks to mitigate DoS or misconfigurations, as it is ...


Top 50 recent answers are included