Code Monkey home page Code Monkey logo

Comments (5)

tflori avatar tflori commented on August 22, 2024 2

argh - sorry didn't test it before. It has to find usernames that are vaild. So the query will be:

SELECT username FROM (
  SELECT s.username, sender FROM sender_alias as s JOIN mailbox as m ON m.username = s.username AND m.active = 1 
  UNION SELECT username, username as sender FROM mailbox WHERE active = 1
) AS stmt WHERE sender = '%s'

from postfixadmin.

gnanet avatar gnanet commented on August 22, 2024 1

Question 1: are sender aliases also receiver aliases too?
Question 2: If Q1 is no, then some UI extension to edit mailbox would be great too

from postfixadmin.

dimejo avatar dimejo commented on August 22, 2024

I haven't tested this, but I think you can simply use the 'default' queries in smtpd_sender_login_maps.

main.cf

smtpd_sender_login_maps = proxy:mysql:${sql_directory}}/mysql_virtual_alias_maps.cf,
    proxy:mysql:${sql_directory}}/mysql_virtual_alias_domain_maps.cf

from postfixadmin.

dimejo avatar dimejo commented on August 22, 2024

Question 1: are sender aliases also receiver aliases too?

I guess most of the time they are, but not necessarily.

from postfixadmin.

tflori avatar tflori commented on August 22, 2024

@dimejo yes, might work too. But it will not use the table that I created. I wanted to use both: the aliases and a sender alias table

I also like the idea of having it configurable via the interface...

Sent from my OnePlus ONEPLUS A3003 using FastHub

from postfixadmin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.